Skip to main content



      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
Eclipse UserFriend
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?
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
Eclipse UserFriend
ide for java dev.
do I have to import javax package?
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
Eclipse UserFriend
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
Eclipse UserFriend
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?
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
Eclipse UserFriend
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
Eclipse UserFriend
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?
Previous Topic:Get artifacts from P2 repository
Next Topic:Need help getting started with dandelion plugin
Goto Forum:
  


Current Time: Thu Jul 24 14:23:02 EDT 2025

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

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

Back to the top