- This topic has 6 replies, 4 voices, and was last updated 18 years, 6 months ago by smulgund.
-
AuthorPosts
-
sienalukeMemberi created a swing app with MatisseMyEclipse and ran it in eclipse no problem, but how do i run it outside of the IDE so i can test it on other machines. i am usually used to writing web based projects with jboss so i never had to set classpaths for those
thanks
Riyad KallaMemberThat depends on how you package it. If you plan to package up your project as a JAR, then just make sure to have your JAR, and the swing-layout JAR in your classpath. You can also package your project up and create the propert MANIFEST for your main JAR, that adds a proper Class-Path entry to reference the swing-layout JAR in it, so you could just double click on the JAR to run it.
sienalukeMemberi was able to jar it up and run it i also have some other jars that are jar with my class files. the only problem is that it doesn’t work when i move it to a different directory
PeterlihMemberhm … I had the same problem. My workaroud: Build and run the project in eclipse (then the classes are compiled). Then run a new project in netbeans 5, import the needed libraries. Copy the copiled sources in the bin folder of the netbeans projekt. Copy also the *.java files in the src folder. Build and run the project in netbeans. Now you find a runnable jar file in the dist folder of your filesystem.
Note: The libraries will be exported in an extra folder. When you copy the jar to another location, you will have to copy the folder structure as well …
Second note: Actually I’m not sitting at my developement computer. I hope, I described the workaround coorectly out of my mind …
Third note: matisse4myeclipse and netbeans work fine together!
Last note: I’m using eclipse, cause I need this environment for my projects. But you can use netbeans for this dirty trick! Of course, there are several ways to use the export function of eclipse. But I often had problems with the Manifest file. Well the dirty way using netbeans works any time!
sienalukeMemberi found a plugin called fat jar which works nicely
Riyad KallaMemberLink?
smulgundMemberThis appears to be the thing:
I’ve gotten used to a capability like this in JBuilder, so I was a bit bummed not to find it natively in Eclipse. Problem solved!
@support-rkalla wrote:
Link?
-
AuthorPosts