Win a copy of Rust Web Development this week in the Other Languages 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Can't access/call class/method in java class which is compile by using netbeans

 
Ranch Hand
Posts: 164
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm using netbeans 6.1 my problem is compile through jdk class not accessing class file from netbeans. I don't what is the problem. In my project I compile some part of program using jdk and some other part of programs where compiled using netBeans. NOw I can't combine thoser thing. Please any help.
 
Ranch Hand
Posts: 226
1
jQuery Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I suspect that your problem is related to classpaths.

To what directory are sending the classes compiled through the JDK?

Netbeans places the compiled class files inside the build folder under the root of the project (or some other place as set when you create the project in Netbeans, you can check where)

I suggest your either import the classes not in Netbeans into Netbeans so that Netbeans compiles all the java files into the same folder structure. Alternatively, you will need to copy the Netbeans compiled class files into folder structure to where you compile the java files through the JDK.

I hope I have understood your problem correctly, and that this explanation makes some sense
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic