Help for creating IDE

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2008
Posts: 60
Reputation: britto is an unknown quantity at this point 
Solved Threads: 0
britto britto is offline Offline
Junior Poster in Training

Help for creating IDE

 
0
  #1
Nov 1st, 2008
hi......
Im doing my main project...
im creating an IDE for c,c++,java using java lang...
i need to link the program written, to the c compiler...
any ideas...
then whr can i download the source code for net beans IDE
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 1,175
Reputation: stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light 
Solved Threads: 125
Featured Poster
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Veteran Poster

Re: Help for creating IDE

 
0
  #2
Nov 1st, 2008
This link should help you in getting NetBeans IDE sources and explain how to work with them.
A C Compiler would be an external application, so for invoking it you will need to use the Runtime class and process the output, Sorry had mixed it up with JNI when I posted at the start
Last edited by stephen84s; Nov 1st, 2008 at 10:19 am.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."

"How to ask questions the smart way ?"
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 60
Reputation: britto is an unknown quantity at this point 
Solved Threads: 0
britto britto is offline Offline
Junior Poster in Training

Re: Help for creating IDE

 
0
  #3
Nov 1st, 2008
Thank u......
is there any function in java for executing external application....
can u explain abt runtime classes..
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 973
Reputation: Alex Edwards is a jewel in the rough Alex Edwards is a jewel in the rough Alex Edwards is a jewel in the rough Alex Edwards is a jewel in the rough 
Solved Threads: 107
Alex Edwards's Avatar
Alex Edwards Alex Edwards is offline Offline
Posting Shark

Re: Help for creating IDE

 
1
  #4
Nov 1st, 2008
This should be an easy project, until you have to create a command for executing an applet instead of a standalone application.

Also executing packaged-classes might be a bit tricky.

It will help if you ran some batch files (or possibly even shells for a UNIX box) to see what it takes to execute a java class file, or compile a .java file into a .class file.

Running from the command line gives similar results, but it may be easier to see mistakes or organize your commands by using the above method.

Once you've figured that out, look up the Runtime API

http://www.javadocexamples.com/java_.../lang/Runtime/


-- some executions by example--

http://www.javadocexamples.com/java/...0command).html


-- a reference for executing applets from the command line--

http://www.cs.colostate.edu/helpdocs/JavaInDOS.html


-- the brute-force method of executing an applet (using main)--

http://www.linuxtopia.org/online_boo...TIJ316_006.htm
Last edited by Alex Edwards; Nov 1st, 2008 at 6:56 pm.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,649
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 474
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Help for creating IDE

 
0
  #5
Nov 2nd, 2008
> This should be an easy project

You have seriously got to be joking...

> Also executing packaged-classes might be a bit tricky.

Take a look at how Ant handles such things.
I don't accept change; I don't deserve to live.

Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 973
Reputation: Alex Edwards is a jewel in the rough Alex Edwards is a jewel in the rough Alex Edwards is a jewel in the rough Alex Edwards is a jewel in the rough 
Solved Threads: 107
Alex Edwards's Avatar
Alex Edwards Alex Edwards is offline Offline
Posting Shark

Re: Help for creating IDE

 
0
  #6
Nov 2nd, 2008
Originally Posted by ~s.o.s~ View Post
> This should be an easy project

You have seriously got to be joking...

> Also executing packaged-classes might be a bit tricky.

Take a look at how Ant handles such things.
I meant creating the GUI layout would be easy.

It will be hard to create plug-ins for the IDE, but depending on the scope of the assignment plugins can be an optional addition to the IDE.

If its a simple IDE that is dedicated to interfacing with a java compiler and runtime (or even certain components of a JDK) then it shouldn't be too bad.

But this is obviously an assumption. Not enough information of the scope of the assignment is given, and if the scope is bigger than I assumed then I agree that this assignment will not be as easy as I originally thought.

Edit: Actually the OP needs the IDE to interface with a c compiler, not java, though the way it would be done is not too different.
Last edited by Alex Edwards; Nov 2nd, 2008 at 4:51 am.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 60
Reputation: britto is an unknown quantity at this point 
Solved Threads: 0
britto britto is offline Offline
Junior Poster in Training

Re: Help for creating IDE

 
0
  #7
Nov 3rd, 2008
what r the files required for compiling java pgm....
is javac and java enough....
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 706
Reputation: stultuske is a jewel in the rough stultuske is a jewel in the rough stultuske is a jewel in the rough 
Solved Threads: 84
stultuske's Avatar
stultuske stultuske is offline Offline
Master Poster

Re: Help for creating IDE

 
0
  #8
Nov 3rd, 2008
Originally Posted by britto View Post
what r the files required for compiling java pgm....
is javac and java enough....
are you now telling you haven't even tried to compile anything yet? javac is the compiler, yes. I 'd suggest you first get to learn how that thing works, before you go and try to create an IDE
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,273
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 544
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: Help for creating IDE

 
0
  #9
Nov 3rd, 2008
then whr can i download the source code for net beans IDE
You cant. Its not opensource.
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 706
Reputation: stultuske is a jewel in the rough stultuske is a jewel in the rough stultuske is a jewel in the rough 
Solved Threads: 84
stultuske's Avatar
stultuske stultuske is offline Offline
Master Poster

Re: Help for creating IDE

 
0
  #10
Nov 3rd, 2008
Originally Posted by jbennet View Post
You cant. Its not opensource.
uhm... yes, yes it is actually. NetBeans is openSource, at least that's what the website sais
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1273 | Replies: 19
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC