How to Make Portable/ Jdk Independent Java Program

by md.zaid.58760 in Circuits > Software

3559 Views, 11 Favorites, 0 Comments

How to Make Portable/ Jdk Independent Java Program

Slide7.JPG

Hellow Everyone, I wanted to make portable java program which I could run on any machine(without jdk or jre). So after conducting few experiments I maded a package which can run Basic java classes on any windows machine in the absense of jdk/jre.

download the archive given below

click here

Slide1.JPG
Slide2.JPG

Extract the archive any where.

Slide3.JPG

Copy your java classes to bin folder.

Note- The first letter of your class name must be capital

Slide4.JPG
Slide5.JPG
Slide6.JPG

Now we need to edit run.bat. Just right click it and select edit. Now enter name of your class in it and save it.

Your program has been created. Just double click run.bat to execute your program