Java Programming - Resourse is out of sync with the file system

hi

i am using eclipse 3.2..i have add external Archives(net.jTank) to my project..when i run my project the project is working properly..when i make the same project as a jar file the eclipse is showing an error message which is jar creation failed..when i click the details button it is showing that Resourse is out of sync with the file system.pleas help me to solve this problem

[395 byte] By [mebimathewa] at [2007-11-26 23:19:47]
# 1
select the project and hit F5, or right-click and select Refresh
georgemca at 2007-7-10 14:22:48 > top of Java-index,Java Essentials,Java Programming...
# 2
on the left side's package explorer, choose your project's folder, and then press F5 or right click and select "refresh"
mimi_tan1985a at 2007-7-10 14:22:48 > top of Java-index,Java Essentials,Java Programming...
# 3
hithanks for the reply.i had made the jar file now another problem arise is that when i run the jar file it is showingException in thread "main" java.lang.NoClassDefFoundError: com/tanksoftware/gallmage/GallMage2Message was edited by: mebimathew
mebimathewa at 2007-7-10 14:22:48 > top of Java-index,Java Essentials,Java Programming...
# 4

hi

thanks for the reply.i had made the jar

file now another problem arise is that when i run

the jar file it is showing

xception in thread "main"

java.lang.NoClassDefFoundError:

com/tanksoftware/gallmage/GallMage2

Message was edited by:

mebimathew

that tanksoftware library you've used isn't on the classpath when you run the jar

georgemca at 2007-7-10 14:22:48 > top of Java-index,Java Essentials,Java Programming...
# 5
can you check your jar file.If you are using these jar , that one not be latest jar file. So you are getting noClassDef Error.
pattanaikhra at 2007-7-10 14:22:48 > top of Java-index,Java Essentials,Java Programming...
# 6

iHi, Im using eclipse, and I am using the jtank.jar jarbundler.jar and edtftpj.jar libraries. They are added as libraries, but when I export the file as a jar and go to run the jar itself, I get:

"Exception in threads "main" java.langNoClassDefFoundError: com/tanksoftware/gallmage/GallDesk

The program works when I run it from within the IDE. Any help would be greatly appreciated. Thanks.

Message was edited by:

mebimathew

mebimathewa at 2007-7-10 14:22:48 > top of Java-index,Java Essentials,Java Programming...
# 7
I'm not sure about this: try to add those jar files to your project dependencies using: Project->Properties->Java Jar dependenciesOtherwise add these jars to the classpath in your manifest file (or to your general classpath?)Message was edited by: Peetzore
Peetzorea at 2007-7-10 14:22:48 > top of Java-index,Java Essentials,Java Programming...
# 8

hi

i have add all the jar files into my project by build path and i created the jar file of my project with these jar.while creating the jar files i have mentioned the manifest as

Main-Class: com.tanksoftware.gallmage.GallDesk.when i run the jar file it is showing as Exception in thread "main" java.lang.NoClassDefFoundError: com/tanksoftware/gallmage/GallDesk.please help.thanks in advance

mebimathewa at 2007-7-10 14:22:48 > top of Java-index,Java Essentials,Java Programming...
# 9

are you sure that there is a class GallDesk in the package com.tanksoftware.gallmage ?

are you sure that in the class GallDesk there is a main method:

public static void main (String[] args) 

?

beside, you have to be sure that there is no whitespace after the "Main-class: com.tanksoftware.gallmage.GallDesk"

mimi_tan1985a at 2007-7-10 14:22:48 > top of Java-index,Java Essentials,Java Programming...
# 10
hi the project i am doing is free.i download it from http://tanksoftware.com/gallmage/.....so can please download the file and do it in eclipse..i have tried a lot..but i am not getting the result..please help me
mebimathewa at 2007-7-10 14:22:48 > top of Java-index,Java Essentials,Java Programming...
# 11

hi

i am using eclipse 3.2.i have created an application.in my application i have used 3 jar files which i download frm the net,my application is working perfactly through eclipse.when i made a jar file of that,it is showing me an error which is Exception in threads "main" java.langNoClassDefFoundError: com/tanksoftware/gallmage/GallMage2.while creating the jar file i have mentioned the correct main class..i am struggling wiht this problem for one week.please help me to solve this problem

Message was edited by:

mebimathew

mebimathewa at 2007-7-10 14:22:48 > top of Java-index,Java Essentials,Java Programming...