Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » The import javax.media cannot be resolved(javax)
icon1.gif  The import javax.media cannot be resolved [message #1137311] Mon, 14 October 2013 07:57 Go to next message
Zhg Mising name is currently offline Zhg Mising name
Messages: 81
Registered: March 2011
Member
set up a class with importing javax.media,

import javax.media.opengl.GL2;
public class gOpenGL {
float a;
GL2 gl; ///---------------here warning,too.
PGraphicsOpenGL pgl;
float[] projMatrix;

But a warning shows that the import javax.media cannot be resolved.
and GL2 cannot be resolved to a type.

what's matter?


Thanks,
Re: The import javax.media cannot be resolved [message #1137324 is a reply to message #1137311] Mon, 14 October 2013 08:09 Go to previous messageGo to next message
Zhg Mising name is currently offline Zhg Mising name
Messages: 81
Registered: March 2011
Member
ide for java dev.
do I have to import javax package?


Thanks,
Re: The import javax.media cannot be resolved [message #1137404 is a reply to message #1137324] Mon, 14 October 2013 09:17 Go to previous messageGo to next message
David Wegener is currently offline David Wegener
Messages: 1334
Registered: July 2009
Senior Member
Your build path doesn't include a jar file that has the javax.media.opengl classes in it. You need to locate the jar file and add it to your projects Build Path.
Re: The import javax.media cannot be resolved [message #1137487 is a reply to message #1137404] Mon, 14 October 2013 10:29 Go to previous messageGo to next message
Zhg Mising name is currently offline Zhg Mising name
Messages: 81
Registered: March 2011
Member
It has, odd enough,
I check it up and find at the item of Native liberary location there is a {none) word at end of it, when I relocation its location, it can work.

but in other class, it has also this (none) word, but the class can work, why?


Thanks,
Re: The import javax.media cannot be resolved [message #1137638 is a reply to message #1137487] Mon, 14 October 2013 12:35 Go to previous messageGo to next message
David Wegener is currently offline David Wegener
Messages: 1334
Registered: July 2009
Senior Member
I don't really understand your response. Java looks up classes in jar files not in native libraries. It may need native libraries to run, but you need to have the jar file on the build path. You don't put the native library on the build path.
Re: The import javax.media cannot be resolved [message #1138821 is a reply to message #1137638] Tue, 15 October 2013 06:53 Go to previous message
Zhg Mising name is currently offline Zhg Mising name
Messages: 81
Registered: March 2011
Member
thank you. that's what I wonder, too. the jar package is shown at build path.
btw, what is native lib? the lib in program itself?


Thanks,
Previous Topic:Get artifacts from P2 repository
Next Topic:Need help getting started with dandelion plugin
Goto Forum:
  


Current Time: Wed Jul 23 12:26:37 EDT 2014

Powered by FUDForum. Page generated in 0.02155 seconds