Hi, I already change to Eclipse 3.7 (Indigo), but another errors occurs when I declare those lib.
import com.hp.hpl.jena.ontology.OntModel; import com.hp.hpl.jena.query.Query; import com.hp.hpl.jena.query.QueryExecution; import com.hp.hpl.jena.query.QueryExecutionFactory; import com.hp.hpl.jena.query.QueryFactory; import com.hp.hpl.jena.query.QuerySolution; import com.hp.hpl.jena.query.ResultSet; import com.hp.hpl.jena.rdf.model.Model; import com.hp.hpl.jena.rdf.model.ModelFactory; import com.hp.hpl.jena.util.FileManager; import de.fuberlin.wiwiss.d2rq.ModelD2RQ; It is no errors with Eclipse 3.3.1. I use ARQ-2.8.8. Please help me. Binh On Tue, Feb 21, 2012 at 6:00 PM, Ignazio Palmisano < [email protected]> wrote: > On 21 February 2012 16:53, Tran Thai Binh <[email protected]> wrote: > > Hi, > > I use Eclipse SDK 3.3.1, it is very strange that it just has two option, > > when i use EXPORT, that are JAR file and Javadoc, NO Runnable JAR File. > > Have you seen that case before? > > No, but I am using Eclipse 3.7. Eclipse 3.3.1 dates back to September > 2007, any good reason to still use it? > HTH, > I. > > > Cheers, > > Binh > > > > > > On Tue, Feb 21, 2012 at 5:45 PM, Ignazio Palmisano < > > [email protected]> wrote: > > > >> On 21 February 2012 16:34, Tran Thai Binh <[email protected]> > wrote: > >> > Hi, > >> > Thank you very much. Actually, I am very newbie, so please help me > how to > >> > do that clearly. > >> > Thank in advances, > >> > Binh > >> > > >> > >> In Eclipse, select File/Export; the window that opens has the option > >> to export a runnable jar. From there, select the launch configuration > >> that you use in Eclipse to run your code, then choose the location for > >> your exported jar. > >> HTH, > >> I. > >> > >> > On Tue, Feb 21, 2012 at 5:29 PM, Ignazio Palmisano < > >> > [email protected]> wrote: > >> > > >> >> On 21 February 2012 15:45, Tran Thai Binh <[email protected]> > >> wrote: > >> >> > Hi all, > >> >> > I create an java file with Eclipse, it run perfectly within > Eclipse, > >> but > >> >> > when I create an executable file (jar file) and run it with command > >> line > >> >> an > >> >> > error occurs > >> >> > > >> >> > >> >> Your runnable jar is not including all the needed jars in the > >> >> classpath. In Eclipse, you can export a running configurationa nd > >> >> choose to export the needed libraries as well. > >> >> HTH, > >> >> I. > >> >> > >> >> > Exception in thread "main" java.lang.NoClassDefFoundError: > >> >> > com/hp/hpl/jena/rdf/model/Model > >> >> > Caused by: java.lang.ClassNotFoundException: > >> >> com.hp.hpl.jena.rdf.model.Model > >> >> > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > >> >> > at java.security.AccessController.doPrivileged(Native > Method) > >> >> > at > java.net.URLClassLoader.findClass(URLClassLoader.java:190) > >> >> > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > >> >> > at > >> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > >> >> > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > >> >> > Could not find the main class: finish.windowBuilder. Program will > >> exit. > >> >> > > >> >> > Please help me to solve this error. > >> >> > > >> >> > Best wishes, > >> >> > Binh > >> >> > > >> >> > -- > >> >> > Trần Thái Bình > >> >> > GIS and Remote Sensing > >> >> > [email protected] > >> >> > [email protected] > >> >> > Phone: (848) 38247360 > >> >> > mobile: > >> >> > - Việt Nam - > >> >> > >> > > >> > > >> > > >> > -- > >> > Trần Thái Bình > >> > GIS and Remote Sensing > >> > [email protected] > >> > [email protected] > >> > Phone: (848) 38247360 > >> > mobile: > >> > - Việt Nam - > >> > > > > > > > > -- > > Trần Thái Bình > > GIS and Remote Sensing > > [email protected] > > [email protected] > > Phone: (848) 38247360 > > mobile: > > - Việt Nam - > -- Trần Thái Bình GIS and Remote Sensing [email protected] [email protected] Phone: (848) 38247360 mobile: - Việt Nam -
