Problem running java application on Ubuntu [message #1742688] |
Tue, 06 September 2016 12:06  |
Eclipse User |
|
|
|
I have some applications developed with Eclipse and running on windows.
Now I'm trying Ubuntu. I have copied workspace and mi data file on a Ubuntu disk, modified all plarform dependency (\ and /, upper and lower case, etc) and all work fine under eclipse.
To launch the application on windows I used tu run this command:
java -cp AM.jar;Ft.jar foto/Ft ft D:\Foto d:\foto\Proiezioni
where AM.jar contains packages with general purpose class, Ft.jar contain my application's package, foto/Ft is package/class to start The others items are arguments to pass to application. The jar file are created with Eclipse export function.
I've made the same on Ubuntu to create the jar file and I've tried to launch this command:
java -cp /home/claudio/cat/AM.jar;/home/claudio/cat/Ft.jar foto/Ft /home/claudio/cat/ft /media/claudio/Dati/Foto
where all paths are given complete.
java return this message:
no main manifest attribute in /home/claudio/cat/Ft.jar (translated from italian, so it could not be exactly the english message).
I have take a look in the windows and Ubuntu Ft.jar and bot are the same, with manifest files having only a line "Manifest-Version: 1.0"
Some help?
Thanks
Claudio
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03831 seconds