• 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Error running code after cleaning all projects (eclipse)?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. So I ran into a few errors when I tried to run with referenced libraries so I asked on StackOverflow and someone suggested I clean my project. I try to run right after and the only thing I get out is this:

I've read some other answers where people mentioned classpaths, but I don't understand them. I'd love to go back to being able to get at least some output from my code. Please help me
 
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

What IDE are you using? If it's Eclipse, can you post the contents of the .classpath directory?
 
Whitfield Martin
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First off, I'm sorry for replying so late. I didn't have my computer with me for the past few days.
I'm using Eclipse. I'm not 100% if this is what you meant but this is the system variable PATH:
C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.7.0_51\bin

...and this is were my classes are located:
C:\Users\Ben\workspace\SentimentAnalysis\src
(where SentimentAnalysis is the project)

I only found a system variable PATH, not CLASSPATH. I really am sorry, I'm quite new at this.
 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sometimes, you need to compile all after you clean your project. Make sure you don't have any compilation errors.
 
Knute Snortum
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wasn't specific enough, sorry. .classpath is a text file in the root of your project folder. Use File Explorer to find it and any text editor to view it. If you're not sure where the project folder is, in Eclipse, In the Project Explorer, right-click on the source folder, Show In -> System Explorer.
 
Whitfield Martin
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did some reading to educate myself and here's the situation. I'm pretty it's compiling fine. After cleaning my projects, the bin folder wasn't being repopulated with the .class files from my project classes. My src folder is doing fine; it has all of the .java files it needs. My default output location is set to bin, and has been, but the .class files never come back. In the Problems window it says "Build Path Problem" all over the place and the location of the problem is at "Build Path" and the path column is blank.
How can I set the path?(if that's even what I need to do) Thank you for your help guys I appreciate it.
 
Knute Snortum
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without a .class file, Eclipse doesn't know what your build paths are. Right-click on the source folder in the Package Explorer and select Build Path -> Use as a Source Folder.
 
Whitfield Martin
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no such option, even when i click on src -> properties
 
Whitfield Martin
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my src folder is already added to the project's build path...
 
Knute Snortum
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try Project -> Properties -> Java Build Path and look through the tabs. If you have a more specific error message, please post it.
 
Whitfield Martin
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
haha now i feel like an idiot. I didn't properly add boilerpipe to my project. I removed all of its files from my project and everything is normal now. Thank you again for your time. I guess I'll try to get that working properly.
 
I don't get it. A whale wearing overalls? How does that even work? It's like a tiny ad wearing overalls.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic