Win a copy of Programmers Guide to Apache Thrift this week in the Open Source 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Help needed for creating executable applications  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am interested on creating an application.
Problem is it has to run on a non JDK Operating System.
Is JVM sufficient to run a .class file.
How is it possible to run it???
Very troubled Need answer.
 
Marshal
Posts: 24458
55
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

ios mann wrote:Is JVM sufficient to run a .class file.


Sure it is. Well, actually you need a JRE but that's what you get from the download sites. You don't need a JDK, you only need that to compile the class.

How is it possible to run it???


The easiest way is to use the java command at the command line. There's a ton of Java tutorials on the web and the "How to Get Started" sort of tutorial should explain more about that.
 
Ranch Hand
Posts: 47
1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe another option is to make a Jar file, which can be run by the JVM on double clicking its icon. Here's what I do in the NetBeans IDE to obtain the file:
1. Click on the Clean And Build icon
2. Open the "dist" folder (same level as the "src" folder in the project folder for the app) and copy the file represented by the java icon (on mouseover it says "Executable Jar fie")
(Then send/paste it wherever you want that has access to the JVM and double click to run)

(+Welcome to the ranch   )
 
A "dutch baby" is not a baby. But this tiny ad is baby sized:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!