Skip to main content



      Home
Home » Newcomers » Newcomers » Learning Java 3
Learning Java 3 [message #132751] Sat, 28 January 2006 09:24 Go to next message
Eclipse UserFriend
Originally posted by: jaschulz.wiseware.com

I am trying to install the eclipse examples from Learning Java 3 and
everything works fine except for the code from Chapter 24 (XML). The
compiler complains that javax.xml.bind "cannot be resolved". What do I
need to do to deal with this error?

Thanks,

JAS
Re: Learning Java 3 [message #132781 is a reply to message #132751] Sat, 28 January 2006 12:56 Go to previous messageGo to next message
Eclipse UserFriend
javax.xml.bind is not a part of the standard Java runtime library. A
quick search on google brings up that its a part of the Java
Architecture for XML Binding, which is included in the Java Web Services
Developer pack: http://java.sun.com/webservices/ So you'll need to
download this library, and include it as a library in your Java project
to reference it from your code in Eclipse.

Hope this helps,
- Jeff
Re: Learning Java 3 [message #132818 is a reply to message #132781] Sat, 28 January 2006 14:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jaschulz.wiseware.com

Jeff,

I have the Web Services Developer Pack installed. I think the problem
might be some difference between jwsdp-1.5 and jwsdp-2.0. The build.xml
file for ch24 says it was tested with jwsdp-1.5 but I have jwsdp-2.0.
Do you think it is possible that javax.xml.bind got renamed (or
relocated) in jwsdp-2.0?

JAS

Jeff Myers wrote:
> javax.xml.bind is not a part of the standard Java runtime library. A
> quick search on google brings up that its a part of the Java
> Architecture for XML Binding, which is included in the Java Web Services
> Developer pack: http://java.sun.com/webservices/ So you'll need to
> download this library, and include it as a library in your Java project
> to reference it from your code in Eclipse.
>
> Hope this helps,
> - Jeff
Re: Learning Java 3 [message #132879 is a reply to message #132818] Sat, 28 January 2006 15:48 Go to previous messageGo to next message
Eclipse UserFriend
Doubtful, it shows up in the API listing for jwsdp-2.0 as well:
http://java.sun.com/webservices/docs/2.0/api/index.html

You're sure you added the jwsdp libraries to your Eclipse project? The
Eclipse project doesn't pick up project settings from an ant build file
(build.xml). It may build ok, but won't show up properly in the Eclipse
editor unless its added to the project.

Hope this helps,
- Jeff
Re: Learning Java 3 [message #132952 is a reply to message #132879] Sat, 28 January 2006 17:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jaschulz.wiseware.com

Jeff,

If I right click on the project and choose "Properties" and then "Build
Path" (in the Properties Dialog), and then the "Libraries" tab, and then
click "Add Library...", I see:

JRE System Library
Plug-in Dependencies
Standard Widget Toolkit (SWT)
User Library
Web App Libraries

If I highlight "Web App Libraries" (I am presuming that is what I am
supposed to do), and click "Next", nothing happens! The "Finish" button
is not enabled, nothing happens at all.

So what do I do now?

Thanks,

JAS


Jeff Myers wrote:
> Doubtful, it shows up in the API listing for jwsdp-2.0 as well:
> http://java.sun.com/webservices/docs/2.0/api/index.html
>
> You're sure you added the jwsdp libraries to your Eclipse project? The
> Eclipse project doesn't pick up project settings from an ant build file
> (build.xml). It may build ok, but won't show up properly in the Eclipse
> editor unless its added to the project.
>
> Hope this helps,
> - Jeff
Re: Learning Java 3 [message #132965 is a reply to message #132952] Sat, 28 January 2006 17:52 Go to previous messageGo to next message
Eclipse UserFriend
Start over. Select the project, bring up Properties->Java Build
Path->Libraries and select Add External Jars... Select the jar files
included in your jwsdp download. You can also create a lib folder in
your project, copy in the jars, and use Add Jars... to select them there.

Hope this helps,
- Jeff
Re: Learning Java 3 [message #133304 is a reply to message #132965] Mon, 30 January 2006 13:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jaschulz.wiseware.com

Jeff,

I'm sorry to be so thick-headed about this but I'm a beginner...

What I have is:

wpt-all-in-one-sdk-1.0-win32.zip

which, as you imagine is huge. There are more than 50 folders under
"plug-ins". None of these is marked "jwsdp". Can it be that I don't
actually have the jars I need? If so, what download do I need besides
the above?

Thanks

JAS


Jeff Myers wrote:
> Start over. Select the project, bring up Properties->Java Build
> Path->Libraries and select Add External Jars... Select the jar files
> included in your jwsdp download. You can also create a lib folder in
> your project, copy in the jars, and use Add Jars... to select them there.
>
> Hope this helps,
> - Jeff
Re: Learning Java 3 [message #133898 is a reply to message #133304] Wed, 01 February 2006 09:29 Go to previous messageGo to next message
Eclipse UserFriend
James,

I don't think jwsdp is included in the Eclipse Web Tools Project (but I
could be wrong). You'll have to download the Java Web Services
Developer Pack from Sun's website: http://java.sun.com/webservices/

Unzip the download somewhere on your system, within it there should be
one or more jars. Add these jars to your project using the process I
described earlier.

- Jeff

James A. Schulz wrote:
> Jeff,
>
> I'm sorry to be so thick-headed about this but I'm a beginner...
>
> What I have is:
>
> wpt-all-in-one-sdk-1.0-win32.zip
>
> which, as you imagine is huge. There are more than 50 folders under
> "plug-ins". None of these is marked "jwsdp". Can it be that I don't
> actually have the jars I need? If so, what download do I need besides
> the above?
>
> Thanks
>
> JAS
>
>
> Jeff Myers wrote:
>> Start over. Select the project, bring up Properties->Java Build
>> Path->Libraries and select Add External Jars... Select the jar files
>> included in your jwsdp download. You can also create a lib folder in
>> your project, copy in the jars, and use Add Jars... to select them there.
>>
>> Hope this helps,
>> - Jeff
Re: Learning Java 3 [message #133910 is a reply to message #133898] Wed, 01 February 2006 10:18 Go to previous message
Eclipse UserFriend
Originally posted by: jaschulz.wiseware.com

Jeff,

Yes, that (finally) did it. Thanks for your patience.

JAS
Previous Topic:Installation on RedHat Linux
Next Topic:Snippets and exporting settings
Goto Forum:
  


Current Time: Fri Jul 11 20:17:22 EDT 2025

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

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

Back to the top