importing a .class in java

Question about importing a .class in java

Page 1 of 1

3 Replies - 656 Views - Last Post: 25 March 2010 - 10:01 AM Rate Topic: -----

#1 Athaulas  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 24-March 10

importing a .class in java

Posted 24 March 2010 - 09:35 AM

I am working on a Java project and I am having some difficulties with importing a .class file. Unfortunately I do not have access to the source code of the file and I was wondering how I would go about doing it.

Any help would be much appreciated.


-Athaulas

This post has been edited by Athaulas: 24 March 2010 - 10:40 AM

Is This A Good Question/Topic? 0
  • +

Replies To: importing a .class in java

#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1637
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: importing a .class in java

Posted 24 March 2010 - 10:03 AM

Moved to Java
Was This Post Helpful? 0
  • +
  • -

#3 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2870
  • View blog
  • Posts: 11,020
  • Joined: 15-July 08

Re: importing a .class in java

Posted 24 March 2010 - 01:30 PM

Just stick it in the directory that your other class file (and your source so that it will compile) is in. If you are using an IDE, just import int the src and the bin folders...
Was This Post Helpful? 0
  • +
  • -

#4 Athaulas  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 24-March 10

Re: importing a .class in java

Posted 25 March 2010 - 10:01 AM

Thanks for your help. I can't believe it was so simple, it just did not occur to me.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1