• 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:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

compiler tool with standard options

 
Ranch Hand
Posts: 384
MyEclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi ranchers,

i want to develop a GUI based simple compiler tool for java files. The tool compiles and run the java file with standard options.
javac command has many standard option which can be provided at the compile time like -d , -deprecation, -g, -source. Similarly standard options corresponding to java command.
My idea is to provide standard options at the time of compiling as well as running. by that one can compile and run a java file with standard options

I want to get some feedback on this before i dive into it.

Is there similar tool present ? if yes please let me know.
how can i make it better?

any suggestion welcomed.


 
Marshal
Posts: 76798
366
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That sounds like wanting to develop an IDE.
 
naveen yadav
Ranch Hand
Posts: 384
MyEclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
idea is to provide simple GUI interface in which user can select its java file using JFileChooser to be compiled with standard options(JComboBox) and a compile (Jbutton ).

It could be a made like a online tool
 
Ranch Hand
Posts: 859
IBM DB2 Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, if you simply enter: javac MvClass.java, what options do you think are in effect?

WP
 
naveen yadav
Ranch Hand
Posts: 384
MyEclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

-d , -cp , source, -g etc for javac
 
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should not use a combo box for standard options as multiple options can be given with java and javac commands.
 
naveen yadav
Ranch Hand
Posts: 384
MyEclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

John Jai wrote:You should not use a combo box for standard options as multiple options can be given with java and javac commands.



what i can i use instead of JComboBox ?
 
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

naveen yadav wrote:

John Jai wrote:You should not use a combo box for standard options as multiple options can be given with java and javac commands.



what i can i use instead of JComboBox ?



For multiple options check box (JCheckBox) is the best solution. Also , you can keep some of the options chosen in initial stage and allow the user to choose more according to their choice
 
Ranch Hand
Posts: 133
Hibernate Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use a combination of checkboxes for the opptions and textbox/dropdown/JFileChooser for the source files and directories,
i.e. if I choose a java file and I want to use a certain classpath
(cause I have multiple JDK versions installed on my machine).

What I need to do is, select the checkbox with "classpath" option and then I will see a button/control for entering/selecting the path.

You can show/hide additional controls according to the option selected.



 
rohit chavan
Ranch Hand
Posts: 133
Hibernate Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use a combination of checkboxes for the options and textbox/dropdown/JFileChooser for the source files and directories,
i.e. if I choose a java file and I want to use a certain classpath
(cause I have multiple JDK versions installed on my machine).

What I need to do is, select the checkbox with "classpath" option and then I will see a button/control for entering/selecting the path.

You can show/hide additional controls according to the option selected.



 
reply
    Bookmark Topic Watch Topic
  • New Topic