• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

BlueJ import ?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having an enormously hard time with importing a JAR in BlueJ. I've tried every method described in the BlueJ docs and things found on the net. Nothing is doing the trick. I use BlueJ as it is what was used in the class I just finished. The jar I want to use is XStream, an xml serializer/deserializer. I find it very suspicous that BlueJ reports an error when the jar has been found and loaded on startup.

Thanks

Greg
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch

I too have suffered from BlueJ in the past and I have a simple solution: don't use BlueJ. If you use the command line add that .jar to your classpath with the -cp option, or get a proper IDE (eg NetBeans, Eclipse) which will import an external .jar.
 
Greg Settle
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Campbell,

This was going to my last project in BlueJ in any case. I wrote the app in BlueJ for my final grade in the class. I will port it over to Eclipse and I suspect all will be well. Thanks for you comments as its always good to know whats really up with a product.

Greg
 
Campbell Ritchie
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think I was unlucky with BlueJ when I first used it; I had difficulty saving files and they wouldn't compile. It is specifically designed as a beginner's product for training purposes, and I have sometimes found it reluctant even to accept package names.
On Eclipse: r-click the project name, properties, Java Build Path, external JARs, browse, select, OK OK OK OK etc. Or something like that.
Remember you will have to edit the manifest file to include that .jar in the classpath when you export your finished product as a .jar.
 
Greg Settle
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which version of Eclipse are you using? I'm using Ganymede but have found problems with the VE, namely, I can't drop objects on the form. This makes the VE sort of useless! Any thoughts?

Greg
 
Campbell Ritchie
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Europa most of the time. Not quite sure about your problem, but I think this thread ought now to be moved to the IDEs forum.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic