This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

JSmooth: JAR to EXE problem

 
Ranch Hand
Posts: 176
Mac Chrome Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello to all.

I'm using an Open Source program called JSmooth to convert my JAR files into EXE files for various reasons (one of them being for easier distribution). My Java projects are generally GUI based so they don't require a console.

When I use the Autodownload Wrapper in the skeleton tab I can compile and run the EXE (without any errors). But if I move that compiled EXE to another directory it doesn't work (Windows reports an error saying: filename.exe has stopped working).

If I change the Wrapper to the Console Wrapper, compile, and move the EXE file I get a Java error message saying no such class found: MainClass (or something like that)... but this is an unusual result since it runs fine if I compile and keep the EXE in the directory that it is.

Any suggestions or ideas?

Thanks in advance
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
did you ever end up figuring this out? I am currently having the same problem.
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi both,

I'm not sure about JSmooth, but have you considered using Java web start instead?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check the "Use an embedded jar" option... and add your .jar file in there.
it should work
 
Now I am super curious what sports would be like if we allowed drugs and tiny ads.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!