 |
 |
Trouble creating JPEG with Java Servlet
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Aug 2000
Status:
Offline
|
|
I am trying to compile a Java Servlet that creates a JPEG on the fly. I am using ProjectBuilder. I've added <font face = "courier"> JavaVM.framework</font> to my project.
The class i'd like to use is <font face = "courier">com.sun.image.codec.jpeg.*</font>
I see that it is in ui.jar located at /System/Library/Frameworks/JavaVM.framework/Classes/ui.jar
I am using the following line to access the class:
<font face = "courier">import com.sun.image.codec.jpeg.*;</font>
ProjectBuilder says "cannot resolve symbol" when I try to compile the code.
Does anyone have any suggestions? Thanks.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Aug 1999
Status:
Offline
|
|
Try adding that jar to your project. That's what I did with servlet.jar and it works fine...
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Aug 2000
Status:
Offline
|
|
Originally posted by MadBrowser:
<STRONG>Try adding that jar to your project. That's what I did with servlet.jar and it works fine...</STRONG>
Unfortunately adding ui.jar does not solve the problem.
Any other ideas out there?
Thanks.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Apr 2001
Location: San Francisco, USA
Status:
Offline
|
|
Originally posted by webhead:
<STRONG>Unfortunately adding ui.jar does not solve the problem.</STRONG>
- Select your target.
- Navigate to the second tab entitled Build Settings.
- Under the Search Paths section, highlight Java Classes and press return.
- Enter the path /System/Library/Frameworks/JavaVM.framework/Classes/ui.jar
- Build your project.
This works for me. I was able to import the jpeg package and use the JPEGCodec class with no problems.
HTH
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Aug 2000
Status:
Offline
|
|
Originally posted by honeydew:
<STRONG>
- Select your target.
- Navigate to the second tab entitled Build Settings.
- Under the Search Paths section, highlight Java Classes and press return.
- Enter the path /System/Library/Frameworks/JavaVM.framework/Classes/ui.jar
- Build your project.
This works for me. I was able to import the jpeg package and use the JPEGCodec class with no problems.
HTH</STRONG>
Thanks for the quick tutorial on how to add classes to Project Builder. Everything works fine now.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |