File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

software to directly run class file ?

 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont want to use the cmd. I want a 100% freeware to directly run my (console based) class files ? Which is the best software for this ?
 
Darryl Burke
Bartender
Posts: 5115
11
Java Netbeans IDE Opera
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might like to get back to those who responded in the thread you started yesterday
http://www.coderanch.com/t/531063/java/java/application-run-jar-files

Apparently this question is related. It would help if you explain your aversion to the command prompt, and why an executable jar doesn't meet your needs.
 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Darryl Burke wrote:You might like to get back to those who responded in the thread you started yesterday
http://www.coderanch.com/t/531063/java/java/application-run-jar-files

Apparently this question is related. It would help if you explain your aversion to the command prompt, and why an executable jar doesn't meet your needs.


typing commands into cmd is tedious. So i want something to run my .CLASS (ONLY) files directly for testing my small programs.

 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Double-clicking a jar file involves no typing; please address that part of Darryl's question.
 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Double-clicking a jar file involves no typing; please address that part of Darryl's question.

converted my class file to jar via cmd. Double clicked it and got some error. One SCJP tester jar does not cause this problem and runs smoothly (it swing based and not console like my programs)

 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you told us what problem you encountered we might be able to help. Without knowing the details, not so much.

Of course, if your program relies on the console, then running it without one is not going to work.
 
Henry Wong
author
Marshal
Pie
Posts: 20836
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:If you told us what problem you encountered we might be able to help. Without knowing the details, not so much.


Agreed. TellTheDetails.

Ulf Dittmer wrote:Of course, if your program relies on the console, then running it without one is not going to work.


Batch files (and shellscripts) can be double-clicked too. If you need the console, that's certainly an option.

Henry
 
Greg Brannon
Bartender
Posts: 563
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll just say it, this is a bizarre conversation from Bizarro World. The OP originally asked for "100% freeware to directly run my (console based) class files," then in another thread, asked for a similar capability for running .jar files. Then, the OP further narrowed the request by declaring command line commands too hard, clicking not working, leaving the solution set - ZERO . . . it's just bizarre.

No matter what the OP uses, commands in a console or clicking in a UI will be required. As for "100% freeware," there's Sun/Oracle JDK/JVM (duh!), or if that's not "100% free" enough, there are the Open versions.

As the OP has a problem (nearly unintelligible) with every suggestion, I suspect there's more to the request than has been stated or understood. Please continue the conversation after returning to Earth.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a simple solution: Create a small batch file. Call it run.bat for example. Put the command to run your Java program in there.

Then, you only have to type "run" in the command prompt window to run your application, instead of a long "java -classpath blahblah org.mypackage.MyProgram" command.
 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greg Brannon wrote:I'll just say it, this is a bizarre conversation from Bizarro World. The OP originally asked for "100% freeware to directly run my (console based) class files," then in another thread, asked for a similar capability for running .jar files. Then, the OP further narrowed the request by declaring command line commands too hard, clicking not working, leaving the solution set - ZERO . . . it's just bizarre.

No matter what the OP uses, commands in a console or clicking in a UI will be required. As for "100% freeware," there's Sun/Oracle JDK/JVM (duh!), or if that's not "100% free" enough, there are the Open versions.

As the OP has a problem (nearly unintelligible) with every suggestion, I suspect there's more to the request than has been stated or understood. Please continue the conversation after returning to Earth.


Man, i am not a CS-god (electronics !) so some of my doubts may be LAME, please bear with me...
There is nothing more to this request. all i wanted was to be able to run/execute a class file by simply double-clicking it, like any other program. So, i thought i will use some program that adds itself to the context-menu (thats the name right ?)
I tried all kinds of programs to make the classes self-executing , java2exe , exe4j etc but failed.

Lets suspend this thread for a while i will try using these approaches and report back to you.

regards
rb.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic