Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning 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
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

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
 
A feeble attempt to tell you about our stuff that makes us money
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!