Help compiling/running Java in UNIX...

Saint Nick

Lifer
Jan 21, 2005
17,722
6
81
I am developing within Windows in Netbeans 7.0. However, the Java will be executed on our UNIX boxes.

When I execute within the IDE in Windows, it runs fine. However, when I transfer my project over to UNIX using WinSCP, I get the following error:

Code:
Invalid or corrupt jarfile EmailNotification.jar
Does anyone know where I should start to look for problems? I am guessing something could be wrong in my project in Netbeans, but I'm truthfully stumped.
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,836
4,815
75
Is your UNIX server running Sun's JRE, or some open-source clone? Gcj, for instance, tries to run all the Java Sun's JRE can, but doesn't quite measure up.
 

Saint Nick

Lifer
Jan 21, 2005
17,722
6
81
Turns out it is getting corrupted somewhere in the file transfer. I changed some options in WinSCP and it worked (Options, Preferences, Transfer Settings, Switch to "Binary"). I never knew some files were transferred differently than others...