• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Making Java Code a stand alone application

 
jiggy ellsworth
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey all, and thanks in advance!

I'm looking for a way to turn a very simple java program into a stand alone application. Similar to VB, when you create a .exe file. I would like to use Windows task scheduler to execute the java program daily or whatever.

Just to make sure, you can't call the compiled .class file directly, can you?
 
Abhinav Srivastava
Ranch Hand
Posts: 354
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You do not really need to convert your java executable to an EXE file. You can use a batch file for starting the program. You can schedule execution of this batch file in Task Sceduler.
 
jiggy ellsworth
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thx Jonathan, it worked. Just to get my mind around it, here's my development process. Please let me know if this is what you had suggested.

1/ Create & Compile a simple java application
javac Testing.java
2/ Create a Test.exe (contains the line below)
java Testing
3/ Call the Test.exe
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
jiggy ellsworth
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yea, I think the .jar file approach might be a little more fundamentally sound. Anyways, I apologize for not searching the forum on this topic, as I've found several good threads after I started this one. Thx for the help java ranchers!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic