Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

[SOLVED] Geany, Java, and JDOM - package org.jdom does not exist  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As the title mentioned, I cannot seem to get Geany to find JDOM. When I try to compile my code it points me to the line:


import org.jdom.*;

and tells me package org.jdom does not exist.


I've downloaded JDOM, built it, and got the jdom.jar file. I've put that in /usr/local/share/java/j (where I intend to put any other libraries like that if I need them for something.)

I've modified my .bashrc to include the CLASSPATH.

Running env outputs a lot of stuff, including:
CLASSPATH=.:/usr/local/share/java/jdom.jar

running echo $CLASSPATH outputs:
.:/usr/local/share/java/jdom.jar

If I open a terminal in the directory with my java file, I can successfully compile it using javac <name>.java just fine.

Any ideas on how to make Geany compile the code? Is there something special I have to do in Geany to get it to recognize the location of the jdom.jar?
 
Marshal
Posts: 5632
147
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch, janeenh cordova!

The subject line says SOLVED.  I take it that's not the case.

From what I can tell, Geany is an IDE.  I'll move this thread to the general IDE forum.
 
Knute Snortum
Marshal
Posts: 5632
147
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After a quick look at it, I don't see anything to indicate that Geany can handle external Jar files.  Have you considered using a more complete IDE like Eclipse, IDEA, or NetBeans?
 
We should throw him a surprise party. It will cheer him up. We can use this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!