Nifflas' Support Forum

Level Editing Support => Knytt Stories Level Editing Support => Topic started by: AA on May 10, 2009, 19:30:20

Title: KS Java Editor (+ source code)
Post by: AA on May 10, 2009, 19:30:20
A Knytt Stories Editor entirely made in Java; it looks much like the original one, but has a couple additions like some skinning possibilities (unpack Skin.zip in the same folder) and undo/redo.

Thanks to xoft for his Level Composer, whose code has helped me a great deal.

-----------

Release 0.1 (Beta) + Source
requires Java 1.5 or greater
Uses JOrbis (LGPL) and EasyOgg (??) for sound

Release 0.2 + Source
+ Undo/Redo commands
+ Skinning feature (sample Skin included, put 'Skin' directory where the editor .jar is)
inverted mouse wheel increments

Release 0.3 + Source
+ Test button for Windows users should work

Release 0.4 + Source
+ Added support for Test button through Wine (make sure 'wine' is in 'PATH')
+ Changed some mouse event handling methods to (hopefully) make graphics tablet input work
+ More checks on I/O operations; this should avoid data-loss bugs
- minor fixes here and there

Release 0.5 + Source
+ Compress should now work correctly

Release 0.6 + Source
- small tweaks and optimizations
- code reorganized

Release 0.7 + Source
+ Missing keyboard shortcuts (WASD and the like)
+ Level list ordering (I'm really ashamed it's been missing for so long)
- added some swirling dots just for show, the next version should be like the original

Release 0.8 + Source
- removed the swirling dots in the end, they don't add much to the editor anyway

Release 0.9 + Source
- small fixes and code cleanup

Release 1.0 + Source
- fix for high CPU usage bug
- probably won't work on this anymore, save for bugfix requests

-----------

Download the editor's zip file in the attachments, or the jar file from this link: KSEditor-1.0 (DataFileHost) (http://www.datafilehost.com/d/47f0276e)

Regards
Title: Re: KS Java Editor (+ source code)
Post by: Looki on May 10, 2009, 22:42:00
Wow, that's impressive. :) Just like the original editor.
One thing though, I'm using a graphics tablet (Wacom Intuos 3), and I can't use any of the buttons/values like bank number, currently selected layer, etc. - I can double-click them to increase them by one, though.
I'm not sure if it's your fault or java not being able to handle tablets correctly, which I personally would find weird.
Title: Re: KS Java Editor (+ source code)
Post by: AA on May 11, 2009, 07:53:50
Looking around a bit, I've read that some people have problems with Java Swing applications on Tablet PCs, although not always the same problem as yours, so it's posible that it's a Java bug.

If you have the newest JDK installed, you might want to try and recompile the editor, it could have been fixed in later releases (the editor was compiled with the Sun JDK 1.6.0_7 with 1.5 as target platform).

EDIT: does it work correctly while in mouse mode? (or whatever it's called when the pointer appears on screen)
Title: Re: KS Java Editor (+ source code)
Post by: oebchen on May 11, 2009, 19:03:19
This sounds very nice, especially since I'm on a Mac and wouldn't have to use the Windows emulator just to work on a level - if only I could get it to start! X-P Usually there has been a .jar file in all Java programmes I've used so far, but here I can only find .java and .class files, which are opened with my text editor and not at all, respectively. Am I doing something wrong? Do I maybe have to open one of the files from the terminal? In this case, what would I have to type in order for it to work? Please excuse my hopeless noobness... :oops:
Title: Re: KS Java Editor (+ source code)
Post by: AA on May 11, 2009, 21:43:19
I don't know how it works on a Mac, but a .jar file containing a Java application and an entry point (which is the case here) can be executed directly: on Windows with a Java runtime it's usually sufficient to double-click the .jar file, and if it doesn't work, using the command line is an alternative.

In your case, you can just place the .jar file in your Knytt Stories directory, open a terminal there and enter the command
Code: [Select]
java -jar KSEditor.jarMy guess is that all the other Java programs you used had some script file that executed a command like this in your place.
Title: Re: KS Java Editor (+ source code)
Post by: oebchen on May 11, 2009, 22:21:25
Thanks! The point is that there doesn't seem to be any .jar file in the folder, even the search doesn't come up with one - should there be one? If so, maybe it's the fault of my decompression software for not unpacking it from the .zip file you've uploaded, although it's usually quite reliable and shouldn't just skip files when unpacking (or perhaps it is in fact TOO good and unpacked the .jar file into all those .class and .java files - would that be a logical possibility?). Sorry, I haven't been myself lately (more stress than I can probably handle) so I might have overlooked something blatantly obvious... Maybe I have to compile the folder somehow rather than just run a programme? I must admit that I don't know how to do that, I'm only just getting to know Linux very slowly... But I have a friend who studies informatics, so if this is really the case, I can ask her to help me with that, and you don't have to take the time to explain it to me via internet :)

(And yes, that's also the way .jar files usually work on Macs as well, so this shouldn't be any problem at all - once there IS a .jar file to open X-P)
Title: Re: KS Java Editor (+ source code)
Post by: TechnoGeek on May 12, 2009, 03:10:13
@oebchen: try running the .class files from the terminal, that should work
Title: Re: KS Java Editor (+ source code)
Post by: AA on May 12, 2009, 09:21:46
(or perhaps it is in fact TOO good and unpacked the .jar file into all those .class and .java files - would that be a logical possibility?)

That's probably it. Sorry for the misunderstanding, but I suppose that's what happened: since I couldn't attach the .jar file directly to the post (this Forum doesn't allow it), I had to wrap it in a .zip file, and probably your overzealous decompression tool unpacked both in a single pass.

Now, you could either try to figure out how to extract the .jar file only, or you can use the .jar file I uploaded on Media Fire:

Media Fire link (http://www.mediafire.com/?niydbbz4ely)

Alternatively, you can also execute the uncompressed editor by opening the terminal on the directory you've unpacked it and entering
Code: [Select]
java KSJavaEditor.KSEditorwhich is the main class of the editor. This is just in case you were curious about it.

I hope this solves it. Please let me know if/how it works, I don't think anyone has tried it on a Mac yet.
Title: Re: KS Java Editor (+ source code)
Post by: Looki on May 12, 2009, 14:00:38
AA, I don't have any java compilers. Sorry.

Yes, it works fine with the tablet's mouse and my separate mouse (connected via cable).

By the way, it's no tablet PC - I just use a tablet as input device: http://a.img-dpreview.com/news/0409/wacmint3-02.jpg
Title: Re: KS Java Editor (+ source code)
Post by: oebchen on May 12, 2009, 17:33:38
Great, the .jar file works! Thank you very much! :) Looks very nice, too! Then this really must have been what happened, although the original .jar file should still have been in the recycle bin (which it wasn't) because that's where the programme automatically puts already-decompressed archives. Or at least it still should have been SOMEwhere on my computer... Strange...

When trying to open it via the command line you've given me, it says the following:

Spoiler: pretty long code (click to show/hide)

If you can make anything out of this at all... By the way, I don't know why it replaces the full stop with a slash in the first line so that it reads "ksjavaeditor/kseditor" instead of "ksjavaeditor.kseditor", that's not a typo on my part - but maybe this is where the problem lies? Maybe the terminal, for some reason, can't read a full stop properly and therefore replaces it with a slash, making the command useless or inexecutable? I've also tried out the code in all the other subdirectories of the folder, but the result was always the following:

Code: [Select]
Exception in thread "main" java.lang.NoClassDefFoundError: KSJavaEditor/KSEditor
I don't think we have that many Mac users on the forum, so please tell me if there is anything else to test for Mac-friendliness! ;) (eg other possible ways of getting the editor to work) I'll be glad to help!
Title: Re: KS Java Editor (+ source code)
Post by: AA on May 12, 2009, 17:39:53
AA, I don't have any java compilers. Sorry.

Yes, it works fine with the tablet's mouse and my separate mouse (connected via cable).

By the way, it's no tablet PC - I just use a tablet as input device: http://a.img-dpreview.com/news/0409/wacmint3-02.jpg

Now that I think about it, the problem might be due to how I implemented the mouse event handling. Do the 'Test' and 'StartPos' buttons work for you, as opposed to the bank/layer counters? If they do, I could try fixing this.
Title: Re: KS Java Editor (+ source code)
Post by: TechnoGeek on May 12, 2009, 17:49:44
Great, the .jar file works! Thank you very much! :) Looks very nice, too! Then this really must have been what happened, although the original .jar file should still have been in the recycle bin (which it wasn't) because that's where the programme automatically puts already-decompressed archives. Or at least it still should have been SOMEwhere on my computer... Strange...

When trying to open it via the command line you've given me, it says the following:

Spoiler: pretty long code (click to show/hide)

If you can make anything out of this at all... By the way, I don't know why it replaces the full stop with a slash in the first line so that it reads "ksjavaeditor/kseditor" instead of "ksjavaeditor.kseditor", that's not a typo on my part - but maybe this is where the problem lies? Maybe the terminal, for some reason, can't read a full stop properly and therefore replaces it with a slash, making the command useless or inexecutable? I've also tried out the code in all the other subdirectories of the folder, but the result was always the following:

Code: [Select]
Exception in thread "main" java.lang.NoClassDefFoundError: KSJavaEditor/KSEditor
I don't think we have that many Mac users on the forum, so please tell me if there is anything else to test for Mac-friendliness! ;) (eg other possible ways of getting the editor to work) I'll be glad to help!
@oebchen: it's probably case sensitive, i think that's what the error is about, type it in exact case
Title: Re: KS Java Editor (+ source code)
Post by: oebchen on May 12, 2009, 18:07:01
Stupid me... :oops::oops::oops: I didn't even think it might be case sensitive because all the other commands that I've used so far haven't been case sensitive - but then I haven't had to start a Java application from the terminal yet; so far I've only changed directories, installed KS levels, stuff like that... So this works too - I feel like a complete fool... :oops: Of course, you may disregard that part of my message now...
Title: Re: KS Java Editor (+ source code)
Post by: Looki on May 12, 2009, 19:00:43
AA, yes they do.  :)
Title: Re: KS Java Editor (+ source code)
Post by: AA on May 12, 2009, 19:19:53
T3c4n0g33k, thanks for your quick intervention!

By the way, I don't know why it replaces the full stop with a slash in the first line so that it reads "ksjavaeditor/kseditor" instead of "ksjavaeditor.kseditor", that's not a typo on my part - but maybe this is where the problem lies? Maybe the terminal, for some reason, can't read a full stop properly and therefore replaces it with a slash, making the command useless or inexecutable?

It may seem weird, but Java always does this: since Java packages are the same as directories, the dot '.' (which delimits packages) and the slash '/' (which delimits directories) are often used interchangeably by the virtual machine.

Looki: Ok, I'll look into it and see what I can do.
Title: Re: KS Java Editor (+ source code)
Post by: oebchen on May 12, 2009, 19:45:11
Thanks for telling me! :) All those things I didn't know about Java - shame on me C)p But regardless of the dot/slash thing, it works now - I'm happy! Thanks again!
Title: Re: KS Java Editor (+ source code)
Post by: AA on May 12, 2009, 19:53:25
Looki: I've made a very quick fix to the bank/object selectors; please try the attached version and check if that works alright for you. If it does, I'll fix all the other related bugs in the next release, which will have other minor fixes. Thanks for your cooperation.
Title: Re: KS Java Editor (+ source code)
Post by: AA on May 23, 2009, 14:56:36
I haven't heard from Looki yet, but the latest version should work for everyone; I've also finally found out what those 4 bytes in the .knytt.bin files were, and adjusted the editor accordingly.

I think I'll be taking another break from this and try other things; I'm still available for fixes though.
Title: Re: KS Java Editor (+ source code)
Post by: minmay on August 28, 2009, 00:00:40
Having a bit of a problem with this editor.

As most of you probably know by now, I'm running Ubuntu Linux instead of Windows now, and decided to try the Java editor rather than attempt the nightmare which would be running the regular editor under WINE.  (And no, I still haven't got the regular game working.)

The editor works from what I can see, however, it runs at a terrible framerate and takes up a lot of CPU (usage of both cores about 80%).  This makes it nearly unusable to be honest - I have to wait about a second for the cursor to respond, and...yeah.
I know rather little about Linux, and even less about Java, so I can't really help myself with this.

By the way, my computer doesn't just suck, or anything - both of my processor's cores are 3.8 GHz.  Also, other Java stuff runs great.
Title: Re: KS Java Editor (+ source code)
Post by: AA on August 28, 2009, 10:00:58
I don't really know... This editor isn't supposed to be faster than the original of course, but since on my 1,6 GHz dual core it runs acceptably well (but I didn't check CPU usage), then there has to be a problem somewhere.

This is my setup:
- Mandriva Linux 64-bit with KDE4
- NVidia GeForce Go 7300 with the latest closed source drivers
- 3D destop effects enabled
- OpenJDK 1.6.0

However, if you say your other Java apps (I'm assuming graphical ones) run great, specs shouldn't really matter. If you post your setup as well, I'll do some tests on a virtual machine.

I haven't worked on the editor for a while, because I'm no expert on Java graphics optimizations, but sooner or later I'll get back to it.

Thanks for your post.  C)
Title: Re: KS Java Editor (+ source code)
Post by: minmay on August 28, 2009, 16:34:02
Actually, I may have an old version of OpenJDK.  I'll update and all that.
Title: Re: KS Java Editor (+ source code)
Post by: AClockworkLemon on October 17, 2009, 01:03:19
YAY finally someting that works on mac without a  virtual machine. Slight problem... I dont know haow to do anything using terminal or anything like that. obechan or some one else who knows, could you post up/PM me a step-by-step on how to run it? that would be AWSMOE!
Title: Re: KS Java Editor (+ source code)
Post by: AA on October 17, 2009, 09:58:33
As oebchen mentioned, double-clicking on a .jar file should execute it, both on Windows and Mac OS. If you're having the same problem with the unpacking of the .zip file, I'll just upload a new .jar on MediaFire FileFactory for you. Otherwise, if you want to use the terminal regardless, you can just look around for some tutorials. As far as I could gather, Mac OS X Finder doesn't have an option to open a terminal on the current location by default, so you'd have to open the utility and then 'cd' to your KS installation folder.

File Factory link (http://www.filefactory.com/file/b1c4c63/n/KSEditor.jar) (for some reason Media Fire didn't work for me)

EDIT: rehosted the .jar file.
Title: Re: KS Java Editor (+ source code)
Post by: Looki on October 17, 2009, 16:28:58
Wow, sorry, AA! Yes, object and bank selectors now work properly with my tablet. Thanks. ;)
Title: Re: KS Java Editor (+ source code)
Post by: Evil on May 20, 2010, 00:02:13
Ok, how do I assemble this? :)
Title: Re: KS Java Editor (+ source code)
Post by: AA on May 27, 2010, 10:44:52
I'm sorry I haven't replied sooner, but what do you mean by 'assemble'? Once downloaded, you should be able to launch the editor right away, running the .jar file.
Title: Re: KS Java Editor (+ source code)
Post by: Evil on May 27, 2010, 13:18:56
so the files should be kept separated?

no special folder arranging needed? :)
Title: Re: KS Java Editor (+ source code)
Post by: AA on May 27, 2010, 15:23:23
This makes me think you unpacked the .jar file, which isn't necessary. If you did that, or if for some reason you can't run the .jar file directly, you can still use the unpacked files, but it may be more complicated: basically, the Java class that starts the editor is KSEditor (in the KSJavaEditor folder), but to make it work you have to make sure the Java Classpath includes the folder where you unpacked the .jar file.

I made the editor to work as a .jar file (which you can put wherever you want, by the way), and the other Mac users don't seem to have a problem with that; if it wasn't your mistake and you can't run the editor as a .jar file please let me know, I could make you a shell script or something to easily make it run unpacked.
Title: Re: KS Java Editor (+ source code)
Post by: Evil on May 29, 2010, 06:15:50
This makes me think you unpacked the .jar file, which isn't necessary. If you did that, or if for some reason you can't run the .jar file directly, you can still use the unpacked files, but it may be more complicated: basically, the Java class that starts the editor is KSEditor (in the KSJavaEditor folder), but to make it work you have to make sure the Java Classpath includes the folder where you unpacked the .jar file.



I dont particularly get this sentence :(

Can you say it easier? :) Please? :)

Title: Re: KS Java Editor (+ source code)
Post by: Mr. Monkey on May 29, 2010, 08:23:36
the CLASSPATH environment variable determines where the JVM searches for classes to load; not including the correct path would result in incapability of loading the editor properly

my advice if you want a simpler approach is just to run java on the jar file so it knows where the classes are already
Title: Re: KS Java Editor (+ source code)
Post by: AA on May 29, 2010, 09:34:00
What Mr. Monkey said: run the editor directly from the .jar file. If it doesn't work for you for some reason, please tell me what exactly you're doing when attempting to run it.
Title: Re: KS Java Editor (+ source code)
Post by: Evil on May 29, 2010, 17:28:54
So the jar file has to be open to run the editor?

but if I double click on it it closes and gives me an error message: "Check console for possible error messages", but that IS the error message!  :S

Title: Re: KS Java Editor (+ source code)
Post by: AA on May 29, 2010, 21:18:11
Maybe it's a problem of Java version (this editor requires Java 1.5 or later).

Anyway, I don't know how Java error messages are shown on Mac, but you could try running the editor from a terminal to see if more specific messages are shown that way. To do that, open Terminal (under Applications - Utilities), change to the directory where the .jar file is (for example, if the .jar is in the Downloads folder, type 'cd Downloads') and type 'java -jar KSEditor.jar'.
Title: Re: KS Java Editor (+ source code)
Post by: Evil on May 29, 2010, 22:39:02
Maybe it's a problem of Java version (this editor requires Java 1.5 or later).

Anyway, I don't know how Java error messages are shown on Mac, but you could try running the editor from a terminal to see if more specific messages are shown that way. To do that, open Terminal (under Applications - Utilities), change to the directory where the .jar file is (for example, if the .jar is in the Downloads folder, type 'cd Downloads') and type 'java -jar KSEditor.jar'.

it came up nothing :(

Macbook-2:~ administrator$ cd desktop java -jar KSEditor.jar
Macbook-2:desktop administrator$

maybe you could have an instruction on how to set it up, like where to put it? because I think I messed up :(


Title: Re: KS Java Editor (+ source code)
Post by: AA on May 29, 2010, 22:49:12
Sorry, I meant typing 'cd desktop' and pressing enter (this changes to the desktop directory), and then typing the other stuff and pressing enter.
Title: Re: KS Java Editor (+ source code)
Post by: Evil on May 30, 2010, 00:12:55
This pooped up

Code: [Select]
Macbook-2:desktop administrator$ java -jar KSEditor.jar
Exception in thread "main" java.lang.NoClassDefFoundError: java/awt/RadialGradientPaint
at KSJavaEditor.CreateLevelPanel.<init>(CreateLevelPanel.java:89)
at KSJavaEditor.EditorWindow.addCreateLevelPanel(EditorWindow.java:173)
at KSJavaEditor.EditorWindow.reset(EditorWindow.java:215)
at KSJavaEditor.EditorWindow.<init>(EditorWindow.java:131)
at KSJavaEditor.KSEditor.<init>(KSEditor.java:49)
at KSJavaEditor.KSEditor.main(KSEditor.java:1214)
Macbook-2:desktop administrator$

Title: Re: KS Java Editor (+ source code)
Post by: AA on May 30, 2010, 09:20:05
It's certainly a version problem now. What's strange is that nobody else had this problem on Mac; maybe they have Java 1.6. Also I'm pretty sure I told the Java compiler to build the editor for version 1.5...

In short: Java can't find a class that's been added in version 1.6; this class is only used for a useless decoration I added to the editor and I could easily remove it (I can't do this today though, sorry), but I don't know for sure whether there are other 1.6-exclusive classes or not. If you could upgrade Java to version 1.6 it should finally work, but if you don't know how to do that I can't help you. Alternatively I'll make you another version of the editor tomorrow and we'll hope it works this time.
Title: Re: KS Java Editor (+ source code)
Post by: Evil on May 30, 2010, 19:51:21
I did upgrade. It would be nice if you could remove it :)

Thank you :) I can wait :)

A billion thanks :)

Title: Re: KS Java Editor (+ source code)
Post by: AA on May 31, 2010, 11:05:35
Updated the first post with the modified version. Hopefully this time it'll work for you; in case it doesn't, please report any error message you get as you've done for the previous version.
Title: Re: KS Java Editor (+ source code)
Post by: Evil on June 01, 2010, 01:42:00
the same thing popped up

Code: [Select]
Macbook-2:~ administrator$ cd desktop
Macbook-2:desktop administrator$ java -jar KSEditor.jar
Exception in thread "main" java.lang.NoClassDefFoundError: java/awt/RadialGradientPaint
at KSJavaEditor.CreateLevelPanel.<init>(CreateLevelPanel.java:89)
at KSJavaEditor.EditorWindow.addCreateLevelPanel(EditorWindow.java:173)
at KSJavaEditor.EditorWindow.reset(EditorWindow.java:215)
at KSJavaEditor.EditorWindow.<init>(EditorWindow.java:131)
at KSJavaEditor.KSEditor.<init>(KSEditor.java:49)
at KSJavaEditor.KSEditor.main(KSEditor.java:1214)
Macbook-2:desktop administrator$
Title: Re: KS Java Editor (+ source code)
Post by: AA on June 01, 2010, 08:10:49
Are you sure you've downloaded the right file? The one in first post of this topic, I mean. Alternatively, have you deleted the previous version? You might have run that instead by mistake.
Title: Re: KS Java Editor (+ source code)
Post by: Evil on June 02, 2010, 05:56:16
Thanks, this is a miracle! :D

You are awesome! :D


but one more thing it says "Couldnt find levels in. Please set your KS home directory"

And when I say create level it says "template level could not be found"
Title: Re: KS Java Editor (+ source code)
Post by: AA on June 02, 2010, 08:39:30
Click the 'Change' button under KS Home to set the Knytt Stories folder. That is, clicking the button will open a file dialog: select the folder where Knytt Stories is installed, and now on the left panel the list of all the installed levels should show up. This will also allow you to create new levels, as there's a level template file in the Knytt Stories folder.
Title: Re: KS Java Editor (+ source code)
Post by: Evil on June 02, 2010, 21:35:39
In which folder does the levels contain in? :)


Sorry I couldnt find it, I clicked every folder and pressed enter; nothing.  :S
Title: Re: KS Java Editor (+ source code)
Post by: AA on June 03, 2010, 08:04:27
You have to select the Knytt Stories folder, the one which contains the Knytt Stories.exe and Level Editor.exe files.
Title: Re: KS Java Editor (+ source code)
Post by: Evil on June 03, 2010, 13:11:50
oooooooh ok so I have to download the original knytt stories, I get it :D
Title: Re: KS Java Editor (+ source code)
Post by: AA on June 03, 2010, 16:49:24
This editor was originally posted in the old Forum, and there's a number of things I didn't bring over to this post; I thought there would have been no need for all that stuff. I should have left at least the basic instructions on how to install it.

I kind of figured that you didn't have KS installed, but made a more generic reply just in case it weren't the case. Of course, technically speaking, you'd only need the Data folder, because it contains all the tilesets, music, etc. that the editor needs to use, as well as the Template.bin file, which is actually a .knytt.bin file for the basic level that is opened whenever you create a new level.
Title: Re: KS Java Editor (+ source code)
Post by: Evil on June 03, 2010, 21:52:12
ok ok thanks! :D



:D :D :D :D :D
Title: Re: KS Java Editor (+ source code)
Post by: Whistler on September 27, 2010, 22:45:49
It won't let me set my home directory. It says its invalid, but Its my KS folder. Maybe it has issues with flash drives.
Title: Re: KS Java Editor (+ source code)
Post by: AA on September 28, 2010, 09:58:59
I can't figure out where the problem might be. Could you please copy the full error message you're getting?

Just to make sure you're doing it correctly: did you select the folder in which KS is installed, as opposed to the KS executable or any of the subfolders (Data, Worlds etc.)?

The only issue the editor has with flash drives that I could think of is that if you use it on different PCs or different OSes, the saved KS Home path will most likely be wrong. I thought about trying to fix it somehow, but it might create other problems. I have yet to test the editor out on removable drives though; I'll see if I can reproduce your issue as soon as I can.

EDIT: It seems to work fine on my pen drive.
Title: Re: KS Java Editor (+ source code)
Post by: Whistler on September 28, 2010, 13:20:29
It says "cannot get home directory". I don't need to use it, I just want a skinnable editor
Title: Re: KS Java Editor (+ source code)
Post by: AA on September 28, 2010, 18:39:12
I don't know if it'll help, but could you try the modified version attached to this post? If it doesn't solve your problem, and if the error message has changed, could you post the entire message here? Thanks.
Title: Re: KS Java Editor (+ source code)
Post by: Whistler on September 28, 2010, 22:18:23
It just gives me more errors. It could be a Windows 7 issue.