File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Error (compile time) for JAVAX package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Error (compile time) for JAVAX package" Watch "Error (compile time) for JAVAX package" New topic
Author

Error (compile time) for JAVAX package

ashish jadhav
Ranch Hand

Joined: Nov 20, 2008
Posts: 62
Hi,
I am using following packages in my java application.
1) import javax.vecmath
2) import javax.media
when I Run application i got an error message: Packages does not exits
Can anyone please help me where i will get solution of this error?
Albareto McKenzie
Ranch Hand

Joined: Apr 08, 2009
Posts: 298
Do you have that packages included in your project?
ashish jadhav
Ranch Hand

Joined: Nov 20, 2008
Posts: 62
Hi Albareto,
Yes i have included that packages in my project.

Thanks!!
Albareto McKenzie
Ranch Hand

Joined: Apr 08, 2009
Posts: 298
And how do you include them? As you have put in your post:

1) import javax.vecmath
2) import javax.media

or

import javax.vecmath.*
import javax.media.*

?

I am trying to understand why is not working, sorry if I sound silly.
ashish jadhav
Ranch Hand

Joined: Nov 20, 2008
Posts: 62
Hi Albareto,
Yes i have included that packages in my project.

Do you think i have to do some settings for javax package?like environment veriable setting.

Thanks!!
ashish jadhav
Ranch Hand

Joined: Nov 20, 2008
Posts: 62
Hi,
I am sending you my code details below,please see and reply me.
Albareto McKenzie
Ranch Hand

Joined: Apr 08, 2009
Posts: 298
Can you paste also the stacktrace? I have to tell to you that till today I had never heard about that packages but maybe with the stacktrace we can help you.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
when I Run application i got an error message: Packages does not exits


How are you compiling? In an IDE? How are you setting the compile environment?

Where did you put the vecmath library jar file?

Bill
ashish jadhav
Ranch Hand

Joined: Nov 20, 2008
Posts: 62
Hi ,
I am using NetBeans IDE 6.0.
Can you please tell me what should i set in environment veriable?
Thanks!
Albareto McKenzie
Ranch Hand

Joined: Apr 08, 2009
Posts: 298
In eclipse you have to have a Classpath Variable and then add the libraries to the project (I do it with maven) but in NetBeans I have no idea of how doing that. I mean, I suppose you have to do the same but I don't know how to do it in this specific IDE.
ashish jadhav
Ranch Hand

Joined: Nov 20, 2008
Posts: 62
Hi Albareto,
Can you please tell me which libraries i have to add in my project?
Albareto McKenzie
Ranch Hand

Joined: Apr 08, 2009
Posts: 298
Of course the ones you want to use... In NetBeans are not you getting a big error when importing the libraries because you don't have them in your class?
Does your project compile?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error (compile time) for JAVAX package