aspose file tools*
The moose likes Java in General and the fly likes software to directly run class file ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "software to directly run class file ?" Watch "software to directly run class file ?" New topic
Author

software to directly run class file ?

Rahul Sudip Bose
Ranch Hand

Joined: Jan 21, 2011
Posts: 637

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 ?

SCJP 6. Learning more now.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4548
    
    5

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.

luck, db
There are no new questions, but there may be new answers.
Rahul Sudip Bose
Ranch Hand

Joined: Jan 21, 2011
Posts: 637

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
Marshal

Joined: Mar 22, 2005
Posts: 41906
    
  63
Double-clicking a jar file involves no typing; please address that part of Darryl's question.


Ping & DNS - my free Android networking tools app
Rahul Sudip Bose
Ranch Hand

Joined: Jan 21, 2011
Posts: 637

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
Marshal

Joined: Mar 22, 2005
Posts: 41906
    
  63
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
Sheriff

Joined: Sep 28, 2004
Posts: 18855
    
  40

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


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Greg Brannon
Bartender

Joined: Oct 24, 2010
Posts: 560
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.


Always learning Java, currently using Eclipse on Fedora.
Linux user#: 501795
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14164
    
  19

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.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Rahul Sudip Bose
Ranch Hand

Joined: Jan 21, 2011
Posts: 637

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.
 
Consider Paul's rocket mass heater.
 
subject: software to directly run class file ?