473,406 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Problems exporting an application with Eclipse

Hello all,
Mar 1 '07 #1
4 3505
Hello all,
I wrote an application with eclipse that uses Java3d and Jlayer, which is a simple MP3 player. The application is a demo to help visualize matrices in more than 3 dimensions, and basically is an animation with a series of box structures. I am now finished with the application and am trying to make it into something portable and easily distributed, and I thought the easiest way to do it was producing an executable jar file.

I made a jar file with a manifest using the wizard in Eclipse. But it does not execute when double clicked. I tried to run it via command line to get some debugging, and I have found 2 problems that I am not sure how to resolve.

1. I have a lot of resource files (texture files, mp3's etc) that are used in the application. These are just thrown in the root of the project folder. For running the application within eclipse, I can access these files with just a string name and it works fine, but when I turn the entire project into a jar file and run it via the command line or double clicking it, the resource files cannot be found. How do I link the resource files so they will be accessible within this jar file?

2. I am using two external libraries, java3d and jlayer 1.0. I followed the instructions for inserting these libraries into my project, but it seems that the program can only run if these libraries are inserted into the PATH and/or CLASSPATH for the user and system environment variables. (so the linking inside the project may not be working). I want these libraries to work within the jar file so they don't have to be individually installed on the system.

The Websites:
http://java3d.j3d.org/download.html
http://www.javazoom.net/javalayer/javalayer.html

Its actually a separate situation for each library:

JLayer seems to work fine just being referenced within the eclipse project, but cannot be run from the command line without it being referenced as a system CLASSPATH. With Jlayer I imported a class folder to reference it.

With Java3d it seems that it has to be a system environment variable for it to run either in eclipse or command line. With Java3d there was no class folder, so I referenced and copied the .jar files according to instructions from j3d.org.

I need these libraries to be used within the jar file so users don't have to download the libraries separately.

A possible solution is making this application distributable another way. Any suggestions? I tried an applet originally, but its pretty big (20 megs) and I had trouble implementing it. I also looked in to making an executable shell and Java web start, but with no initial luck.

The source code is available on request, I can post a RapidShare link. This is not for a class, but an independent research project that is non-profit, so any help I get will be properly cited.

I apologize for the length!


Microsoft XP Professional SP 2 2002
Java JRE 1.6.0
Java JDK 1.6.0
Eclipse 3.2
Mar 1 '07 #2
r035198x
13,262 8TB
Hello all,
I wrote an application with eclipse that uses Java3d and Jlayer, which is a simple MP3 player. The application is a demo to help visualize matrices in more than 3 dimensions, and basically is an animation with a series of box structures. I am now finished with the application and am trying to make it into something portable and easily distributed, and I thought the easiest way to do it was producing an executable jar file.

I made a jar file with a manifest using the wizard in Eclipse. But it does not execute when double clicked. I tried to run it via command line to get some debugging, and I have found 2 problems that I am not sure how to resolve.

1. I have a lot of resource files (texture files, mp3's etc) that are used in the application. These are just thrown in the root of the project folder. For running the application within eclipse, I can access these files with just a string name and it works fine, but when I turn the entire project into a jar file and run it via the command line or double clicking it, the resource files cannot be found. How do I link the resource files so they will be accessible within this jar file?

2. I am using two external libraries, java3d and jlayer 1.0. I followed the instructions for inserting these libraries into my project, but it seems that the program can only run if these libraries are inserted into the PATH and/or CLASSPATH for the user and system environment variables. (so the linking inside the project may not be working). I want these libraries to work within the jar file so they don't have to be individually installed on the system.

The Websites:
http://java3d.j3d.org/download.html
http://www.javazoom.net/javalayer/javalayer.html

Its actually a separate situation for each library:

JLayer seems to work fine just being referenced within the eclipse project, but cannot be run from the command line without it being referenced as a system CLASSPATH. With Jlayer I imported a class folder to reference it.

With Java3d it seems that it has to be a system environment variable for it to run either in eclipse or command line. With Java3d there was no class folder, so I referenced and copied the .jar files according to instructions from j3d.org.

I need these libraries to be used within the jar file so users don't have to download the libraries separately.

A possible solution is making this application distributable another way. Any suggestions? I tried an applet originally, but its pretty big (20 megs) and I had trouble implementing it. I also looked in to making an executable shell and Java web start, but with no initial luck.

The source code is available on request, I can post a RapidShare link. This is not for a class, but an independent research project that is non-profit, so any help I get will be properly cited.

I apologize for the length!


Microsoft XP Professional SP 2 2002
Java JRE 1.6.0
Java JDK 1.6.0
Eclipse 3.2
Specify the classpath in the manifest for the jar. See here for how to do that.
Mar 1 '07 #3
r035198x
13,262 8TB
Hello all,
Do not double post
Mar 1 '07 #4
r035198x
13,262 8TB
Also go through this.
Mar 1 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: steve | last post by:
hi, during a full export of my export of a (Release 9.2.0.4.0 - Production ) database i'm getting the following: I have been thru metalink, and can find nothing that is exactly the same, even...
3
by: Alan Krueger | last post by:
Greetings, I've been able to cache Transformer objects in a Tomcat-based servlet application to avoid unnecessary Transformer rebuilding, except for certain ones on certain machines. I'm...
2
by: Default User | last post by:
Hi there. I have a few newbie questions. My employer has chosen to use IBM WebSphere Application Server to deploy apps on. As one of my first steps in learning Java/J2EE I need to choose and IDE....
1
by: Mustufa Baig | last post by:
I have an ASP.NET website where I am showing off crystal reports to users by exporting them to pdf format. Following is the code: ---------------- 1 Private Sub ExportReport() 2 Dim oStream...
22
by: Wildemar Wildenburger | last post by:
To make it short: Is there something like this already? There seem to loads of python frameworks for Web-Apps, but I have a hard time finding one for desktop-apps. I imagine it wouldn't be too...
16
by: Ananthu | last post by:
Hi I dont know how to connect mysql with ECLIPSE in RCP application. Please send me the sample code of connecting mysql sever with ECLIPSE in RCP application. Coding Part: RCP Application...
16
by: Lars Uffmann | last post by:
Does anyone have a good suggestion? I am currently using Eclipse Europa with the C-Development Toolkit (plus gnu-toolchain under cygwin) and the Widestudio Native Application Builder plugin. ...
3
by: ravit | last post by:
Hello All, I am trying to execute an application that is developed using eclipse libraries. Jface, SWT , etc. While I execute the application , i have received an exception which I am unable...
2
by: Kevin G. | last post by:
Hello, I'm exporting an ASP page to Excel using 'Response.ContentType = "application/vnd.ms-excel"' and it is working fine for the most part except the particular page I'm exporting has images,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.