Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Java Swing to Native Code

Posted on 2003-02-25
Medium Priority
Last Modified: 2013-11-23
I made a java applet which uses swing using MS visual studio.  I wish to convert this to a .exe file.  I go to the project properties and tell it how to package it and which files to include.  It shows that it is including some of the swing files, but not all the necessary ones.  I've tried, correctly I think, to use the add additional files option to add all the swing files, but that doesn't work.  
When I deploy the applet and then try to run it says that not all class files could be loaded.
If I unzip the swing.jar file and put the resuling javax file in the same directory the program will run.  

How can I make this swing applet run in native code so I can just send somebody a simple .exe file.
Question by:itbeme
  • 2

Accepted Solution

shji1 earned 200 total points
ID: 8018239
As far as I know you will need a third-party tool (like Excelsior JET - http://www.excelsior-usa.com/jet.html) in order to create an exe file.
This dealing with J++ is a huge headach that usually doesn't work.

Expert Comment

ID: 8018271
And another thing, you might wanna test the exe on a computer witout Excelsior Jet installed. My experience with that software forced me to add a dll with the exe.
You might find better tools then that...
LVL 86

Expert Comment

ID: 8018300
>>When I deploy the applet

the 'applet'?

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses
Course of the Month10 days, 10 hours left to enroll

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question