• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

software to directly run class file ?

 
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might like to get back to those who responded in the thread you started yesterday
https://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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Darryl Burke wrote:You might like to get back to those who responded in the thread you started yesterday
https://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.

 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 563
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Blood pressure normal? What do I change to get "magnificent"? Maybe this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic