Skip to main content


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 11:57 Go to next message
Zhg Mising name is currently offline Zhg Mising nameFriend
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 12:09 Go to previous messageGo to next message
Zhg Mising name is currently offline Zhg Mising nameFriend
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 13:17 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
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 14:29 Go to previous messageGo to next message
Zhg Mising name is currently offline Zhg Mising nameFriend
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 16:35 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
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 10:53 Go to previous message
Zhg Mising name is currently offline Zhg Mising nameFriend
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: Fri Apr 26 15:19:10 GMT 2024

Powered by FUDForum. Page generated in 0.09600 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top