Compiling Help!
Hi. I'm pretty new to Java. I know enough of it to write programs, but I cannot compile them. I have downloaded four or five different versions of the Java Development Kit, and still, the 'javac' command doesn't work. For example: If I go into the MS-DOS Prompt, go to my folder with all of my un-compiled Java applets, and type:
javac BigDebt.java
I get the following error message:
Bad command or file name
Could somebody please help me? Oh, and if it helps, I have Windows ME.
My frined save this notes:
in Win98, WinME:
add tho the AUTOEXEC.BAT
SET JAVA_HOME=C:\j2sdk1.4.2_02
SET PATH= ............................
SET PATH=%PATH%;%JAVA_HOME%\bin
in Win200, XP,2003
add to:
My Computer>>System>>advanced properties>>enviromnet vars>>system vars
add new:
JAVA_HOME
update
PATH
after reboot your system
and try on a SYSTEM SYMBOL (MS-DOS)
javac
or
java -version
and have fun !!
many grettings from Mexico !!
Similar Messages
-
Popups work in preview but not in compiled help
Hello,
I am using Robohelp 8 and have been having problems displaying popups in my compiled help. When I view a topic that contains popup links in the WYSIWYG, I can preview the popup topics with no problem, but when I compile and click on a link that contains a popup, nothing happens. I get a warning in the bottom of the browser window that says "Error on page" with no further details. Is there a setting somewhere that I need to adjust. I have never had this problem before.
Thank you in advance for any input.
AdrienneHi there
The popup functionality depends on the ehlpdhtm.js file. Years ago I had a large project where popups broke in topics that were heavily buried in a deep folder structure. I managed to make them work by amending the path to the js file so it was shorter. This also meant I had to copy the js file to the folder where the popups were broken.
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7, 8 or 9 within the day!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks -
Hiding topics in compiled help
Is there a way to hide a topic so that it is included in the
compiled help but can only be found by searching with a specific
keyword? I don't want to exclude it from the compiled help; I just
don't want it to be visible to the general public but still
accessible to those of us who need it.Any topic that is not indexed, not in the TOC and not linked
from other topics etc can only be accessed by searching. However
the search will catch all text rather than just a keyword.
There are threads here describing how to exclude topics from
a search. How about excluding the topic from a search but making
the topic accessible by some hidden means in another topic. For
example, create a small icon the same colour as the background of a
page so that it cannot be seen. Make that a hyperlink to the topic.
I accept it is a kludge but it is only for a small number of people
in the know as to where that graphic is, it would work. -
Way to control which compiled help appears to user?
Just to provide a little background--I have been working with Robohelp for years as an author but basically have no technical expertise. I write topics, press buttons in robohelp to generate compiled help, and that's it. So here's my issue:
We will be generating help in different languages and will have a different compiled help for each language. Since a single client using our software may have employees speaking different languages, we will be installing help for each possible language that can be used with the installation of our software. What we want to do is to be able to have the employee click on a context sensitive help button (which we do now) but open the appropriate help for their language. I guess the idea is that the employee might have to enter some parameter indicating the language, and then the appropriate help opens. Is this something that can be done through Robohelp itself, or would I have to have a developer figure something out on that end?I think this would have to be something a developer sets up.
I wonder if they can do something along the lines of requiring users to indicate the required language as a setting in your application and then set the help calls to go to the appropriate language help.
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge -
Images in .doc, but not in compiled help
I'm using RH 8 after upgrading from x4.1 on Windows XP Professional. I have lots of .shg images and mini buttons in my help files, and they appear in the .doc file. But when I do a check (the green check mark icon), the image is not there. Also not in the compiled help. There is no space allowance for what should be there. The images just aren't recognized at all. I tried copying the entire project folder to my c: drive and compiling from there, and have searched the forum for other suggestions, but nothing is helping. I created a couple of new images via Visio and inserted them into the .doc file as new images, but it still does not show up. I also tried putting all images into an Image folder. Any ideas? If I can see it in the .doc, why won't it show up in the Help? Thanks. David
And you are using RoboHelp for Word?
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks -
Using RHelp 9 - Compiled Help system missing book images on left pane? Any ideas on how to correct?
Hi there
Colum seems to be making an assumption that you are producing Microsoft HTML Help, as the option he mentions only applies to the world of compiled CHM files.
But this question was posted in the WebHelp forum category, so one might assume that you are producing WebHelp output.
So the question we ask here is this:
What *IS* the output type you are creating? WebHelp? Microsoft HTML Help? FlashHelp?
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7, 8 or 9 within the day!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks -
TOC Entries Not Appearing in Compiled Help
I have three books in my TOC, but only two appear when I
compile the project into WebHelp. Any ideas on what's going on
here?
Thanks!It could be any number of things. Is it the same in both your
output and published help? Conditional build tags? Merged help? Can
you give us some more detail? -
Hyperlinks don't work in Compiled Help File
Had old version of RoboHelp (4?), then company installed Word
2003 which caused errors.
Purchased version X5. Brought in my old version of Help and
compiled using the new version of Robohelp.
The links and some of the BMP's do not seem to be recognized.
When I look at the precompile version things look fine.
But when compiled, the buttons are not found and the links do
not work.
Has anyone experienced something similar? I feel it must be
some one thing that I need to do. But it is confusing because some
links and buttons work, and some don't.
thank you.I have a similar problem. My links work and my source code
works initially, but if I copy and paste the link, it breaks the
pasted link's source code. Here's the source code I'm using for my
email message:
mailto:[email protected]?subject=Register: January 23
Webinar Training&body=Please register me for the training
session on January
23.%0A%0ACompany:%0AName:%0ATitle:%0APhone:%0A%0AGeneral
Contractor:%0AProjects:%0A%0AComments:%0A%0Awww.texturallc.com
If I review the source code in RoboHelp, it removes the %0A
(which represents a line break) with ||. If I replace || with %0A
again, it just converts it back to ||, which means nothing as far
as I know.
Thanks,
Carrie -
Flex 3 CSS won't compile, HELP!!!
As you can see in this image, design view finds the assets
just fine, but it has compile errors. ->
Flex CSS
Foolishness
Any suggestions???Flex's css stuff seems to freak out occasionally. I find
doing a clean build or a restart of the app helps. If not, then you
probably have some bug in your CSS that isn't obvious that throws
things off. Try removing each section of CSS until you see which
section is causing the problem, then narrow it down.
Also, keep in mind that assets are relative to their files
and that can be problematic at times, especially when going from
dev to production.
I generally have my folders look like:
src
views
assets
bin-debug
lib
etc...
I have my style.css in the assets folder along with my embeds
and I still include everything as ../assets/ because they are
relative to the src/App.mxml that they were included in as opposed
to the location of the CSS file I believe. -
How to Remove Unwanted HTML Text Appearing in Compiled Help Topics
I am working on a RoboHelp HTML project in version 7.03.001. Recently, when checking files into source control, the program we use informed me that two of my topics (htm files) and the index file (.hhk) were "conflicted."
When I examine the compiled topics, I see a string of HTML code at the very top of the topics, above the topic titles. Here is an example:
When I look at the HTML view, for the same topic, this is what I see:
Temporarily removing this line of code did not resolve the issue. The unwanted text was still displayed after compiling.
Another thing to mention is that several strange files also appeared in various project folders--files associated with the suspect topics and index:
I don't know what these files are for or if they can be deleted. In addition, I generally don't do much work in the HTML code, so I was wondering if anyone might know what would cause this and also how it can be fixed.
Thanks for your help!Those additional files look like revisions of the files that have the problem. If you open up the files that have a suffix of .mine, .r64214 and .r65414 do these have the same issue? if sounds like you have a source control file version issue here but it is hard to tell without some more detail. Hope this gives you some clues for things to look at but do come back if you need further help.
The RoboColum(n)
@robocolumn
Colum McAndrew -
K Keywords not showing up in compiled help index
I have created a help project with one document. Each topic
has been checked to add it to the index. Saved and compiled the
help. Some words appear on the index, while others do not. I go
into the index designer, and I can see all the missing words.
Ran the Index Wizard, and still the words do not appear. You
can see the topics in the toc, and navigate to them.
I have years producing help and never encountered this
problem.Go to Tools and delete cache for the folder in question.
-
Checking in a Compiled Help File to RoboSource Control
We're getting ready to upgrade from RoboHelp X3 to X5 and
begin using RoboSource Control. I have X5 and RSC installed on a
test machine and noticed that RoboHelp HTML doesn't appear to
automatically check in a newly compiled .chm file when I close that
particular help project. This leads me to believe that the only way
to check in a newly compiled .chm file is to do so manually from
within the RoboSource Control explorer program. Could someone
please confirm this or, if I'm mistaken, describe how to configure
RoboSource Control/RoboHelp HTML to automatically check in the .chm
file?
Thanks!RoboSource Control manages all files which are part of a
RH-project. The compiled CHM is not consiodered part of the
project. Considering that the source control system allows for
rollbacks and would have to maintain (nearly) all your compiled
files to do so, this method makes sense.
Greetings
---Dirk Bock -
Help! Compiled help won't display
My Webhelp project was working fine until yesterday. Now, when I compile the help, I don't get an error message but when I click View Result, IE 8 can't display it! It tries a couple times and then gives up. I am using Windows XP Professional and RoboHelp HTML 10. Any thoughts as to what's wrong? (BTW, I've tried double-clicking the main help file from Windows Explorer as well, with the same result.) Mozilla Firefox 12 DOES display the file.
Thank you in advance for any help!SSL = Single Source Layouts (pod) - glad that you found it
If it's not MOTW then, did any settings in your IE change that aren't letting you view local htm files? -
Java 1.5beta compilation help
I don't know if anyone here has tried the new(ish) java 1.5.0beta, but I can't get it to work for the life of me. If anyone knows why it still seems to compile like 1.4, or if anyone knows where I can get more help, please let me know...
Specifically, the new Generics functionality should allow me to compile:
ArrayList<String> listOfStrings = new ArrayList<String>();
instead of the old version without the "<String>". This isn't compiling with javac 1.5.0, saying that a "(" is expected (just like you'd expect if you tried compiling it with javac 1.4. My version of the compiler is definitely correct (according to javac -version, anyway).
Any ideas?
DIt's ok, I've solved it.
To compile in 1.5 mode, you need to specify "javac -source 1.5 <filename>". Seems rather roundabout, but I no longer have a problem...
D -
Compilation Help!!Pls offer ur knowledge
Anyone can figure out what wrong with my program>I try to getString name from Eoption1 class location and be display in other interface(Exam class).There is a problem during compilation.Can anyone offer some knowlegde tosee what the problem,,Below are three file .....(Module1.java,Eoption1.java,Exam.java)
Module1.java(main class)
=================
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.BorderFactory;
import javax.swing.border.Border;
import javax.swing.border.TitledBorder;
public class Module1 extends JFrame {
long startT=0;
Clock2 applet = new Clock2();
public Module1() {
super("Certification Exam");
JMenuBar menubar = new JMenuBar();
JMenu menu = new JMenu("File");
JMenu exam = new JMenu("Exam");
JMenu help = new JMenu("Help");
JMenu type = new JMenu("Type of Exam");
JMenuItem
newitem = new JMenuItem("New ..."),
olditem = new JMenuItem("Old ..."),
exititem = new JMenuItem("Exit ..."),
option = new JMenuItem("Exam Option"),
starte = new JMenuItem("Start Exam");
menu.add(newitem);
menu.add(olditem);
menu.add(exititem);
exam.add(starte);
exam.add("Load Exam");
exam.addSeparator();
exam.add(option);
help.add(type);
help.add("Implementation");
help.add("Update");
type.add("Windows Profesional");
type.add("Windows Server");
type.add("Active Directory");
Container contentPane = getContentPane();
JLabel none = new JLabel("");
JPanel panel = new ImageCanvas("cover2.jpg","LOGO");
panel.setBorder(BorderFactory.createRaisedBevelBorder());
panel.setPreferredSize(new Dimension(495,260));
//panel.setPreferredSize(new Dimension(960,500));
panel.setBounds(20,20,950,500);
applet.setBounds(430,550,150,150);
contentPane.setLayout(new BorderLayout());
contentPane.add(panel,BorderLayout.SOUTH);
contentPane.add(applet,BorderLayout.SOUTH);
contentPane.add(none,BorderLayout.SOUTH);
applet.init();
applet.start();
menubar.add(menu);
menubar.add(exam);
menubar.add(help);
setJMenuBar(menubar);
starte.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Option1();
option.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Optional();
public void Optional() {
Eoption1 option = new Eoption1(this);
startT=option.getStartT();
public void Option1() {
Exam exam = new Exam(startT);
class ImageCanvas extends JPanel {
ImageIcon icon;
public ImageCanvas(String imageName, String description) {
icon = new ImageIcon(imageName, description);
public void paintComponent(Graphics g) {
Insets insets = getInsets();
super.paintComponent(g);
icon.paintIcon(this, g, insets.left, insets.top);
public Dimension getPreferredSize() {
Insets insets = getInsets();
return new Dimension(
icon.getIconWidth() + insets.left + insets.right,
icon.getIconHeight() + insets.top + insets.bottom);
public static void main(String args[]) {
JFrame mod = new Module1();
Toolkit theKit = mod.getToolkit();
Dimension wndSize = theKit.getScreenSize();
mod.setSize(wndSize.width,wndSize.height);
mod.setVisible(true);
mod.setResizable(false);
mod.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Eoption1.java
==================
import java.math.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Eoption1 extends JDialog implements ActionListener {
JComboBox combo = new JComboBox();
long startT=0;
public Eoption1(Frame parent) {
super(parent, "Server 1.2-1", true);
Container contentPane = getContentPane();
JLabel label1 = new JLabel("Examinee Name");
JButton start = new JButton("Submit");
JTextField name = new JTextField(30);
String stuName;
start.setEnabled(false);
combo.addItem(" No Timer");
combo.addItem("30 Minutes");
combo.addItem("60 Minutes");
combo.addItem("90 Minutes");
combo.addItem("120 Minutes");
combo.addItem("150 Minutes");
combo.addItem("180 Minutes");
combo.setSelectedIndex(0);
start.addActionListener(new ActionListener() {
public void actionPerformed( ActionEvent e ) {
try {
startT = combo.getSelectedIndex();
if (startT == 0) {
// do something
stuName = (String) name.getText();
startT = -1; // Impossible to get -1 from this calcs, so we set it so we can check it later
} else {
startT *= 30*60*1000;
stuName = (String) name.getText();
dispose();
return;
catch (Throwable fe) {}
contentPane.setLayout(null);
contentPane.add(label1);
contentPane.add(name);
contentPane.add(start);
contentPane.add(combo);
name.addActionListener(this);
label1.setBounds(30,10,100,30);
name.setBounds(140,10,150,25);
start.setBounds(30,50,100,25);
combo.setBounds(150,50,130,25);
Dimension wndSize = Toolkit.getDefaultToolkit().getScreenSize();
setBounds(wndSize.width/4, wndSize.height/4,wndSize.width/2, wndSize.height/2);
setVisible(true);
public void keyTyped(KeyEvent e) { }
public void keyPressed(KeyEvent e) { }
public void keyReleased(KeyEvent e) {
if((name.getText().length() > 0)
start.setEnabled(true);
else
start.setEnabled(false);
public long getStartT() {return startT;}
Exam.java
==========================
import javax.swing.*;
import java.awt.*;
import java.text.*;
import java.util.*;
import java.awt.event.*;
import javax.swing.border.*;
public class Exam extends JFrame {
javax.swing.Timer timer;
JTextField time = new JTextField("");
String stuName;
long startT,stopT;
SimpleDateFormat timef = new SimpleDateFormat(" HH:mm:ss ",Locale.getDefault());
Exam(long start,String stuName) {
super("Exam");
startT=start;
this.stuName = stuName;
Date date=new Date();
timef.setTimeZone(TimeZone.getTimeZone("GMT"));
Container contentPane = getContentPane();
String content = "";
JLabel namedisplay = new JLabel("");
JPanel panel = new JPanel();
JTextArea textArea = new JTextArea(content,10,30);
textArea.setLineWrap(true);
textArea.setEditable(false);
time.setBounds(300,400,70,25);
time.setOpaque(true);
time.setEditable(false);
panel.setBorder(BorderFactory.createTitledBorder("Read the following"));
panel.add(textArea);
panel.setBounds(100,50,500,250);
namedisplay.setText(stuName);
namedisplay.setBounds(300,350, 100, 25);
contentPane.setLayout(null);
contentPane.add(panel);
contentPane.add(time);
contentPane.add(namedisplay);
setResizable(false);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
if (startT > 0) {
startT+=System.currentTimeMillis();
timer = new javax.swing.Timer(1000, new ActionListener() {
public void actionPerformed(ActionEvent e) {
stopT = System.currentTimeMillis();
time.setText(timef.format(new Date(startT-stopT)));
timer.start();
} else {
// Running with no timer, do something here to let them know.
// set the time.setText("00:00:00"); or whatever you want it to sit at
setVisible(true);
Dimension wndSize = Toolkit.getDefaultToolkit().getScreenSize();
setBounds(wndSize.width/10, wndSize.height/10,800,600);Dear VV..
i have try to compile using your way and it does works,but got somemore problem trouble me,I have try to getString where the exammiinee name from Eoption class but it can;t store to be display in the Exam class.I have already declare all the variable but it doesn;t run.Can you pls help..Below are the code.where it got three file (Exam,MOdule1,Eoption).There is a applet code Clock2 ,u may // it first..
Exam.java
==============
import javax.swing.*;
import java.awt.*;
import java.text.*;
import java.util.*;
import java.awt.event.*;
import javax.swing.border.*;
public class Exam extends JFrame {
javax.swing.Timer timer;
JTextField time = new JTextField("");
String stuName;
long startT,stopT;
SimpleDateFormat timef = new SimpleDateFormat(" HH:mm:ss ",Locale.getDefault());
public Exam(long start,String stuName) {
super("Exam");
startT=start;
this.stuName = stuName;
Date date=new Date();
timef.setTimeZone(TimeZone.getTimeZone("GMT"));
Container contentPane = getContentPane();
String content = "";
JLabel namedisplay = new JLabel("");
JPanel panel = new JPanel();
JTextArea textArea = new JTextArea(content,10,30);
textArea.setLineWrap(true);
textArea.setEditable(false);
time.setBounds(300,400,70,25);
time.setOpaque(true);
time.setEditable(false);
panel.setBorder(BorderFactory.createTitledBorder("Read the following"));
panel.add(textArea);
panel.setBounds(100,50,500,250);
namedisplay.setText(stuName);
namedisplay.setBounds(300,480, 100, 25);
contentPane.setLayout(null);
contentPane.add(panel);
contentPane.add(time);
contentPane.add(namedisplay);
setResizable(false);
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
if (startT > 0) {
startT+=System.currentTimeMillis();
timer = new javax.swing.Timer(1000, new ActionListener() {
public void actionPerformed(ActionEvent e) {
stopT = System.currentTimeMillis();
time.setText(timef.format(new Date(startT-stopT)));
timer.start();
} else {
// Running with no timer, do something here to let them know.
// set the time.setText("00:00:00"); or whatever you want it to sit at
setVisible(true);
Dimension wndSize = Toolkit.getDefaultToolkit().getScreenSize();
setBounds(wndSize.width/10, wndSize.height/10,800,600);
Eoption1.java
========================
import java.math.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Eoption1 extends JDialog implements ActionListener{
JComboBox combo = new JComboBox();
Exam x = new Exam(0L,"");
long startT=0;
JTextField name = new JTextField(30);
String stuName;
JButton start = new JButton("Submit");
public Eoption1(Frame parent) {
super(parent, "Server 1.2-1", true);
Container contentPane = getContentPane();
JLabel label1 = new JLabel("Examinee Name");
JButton start = new JButton("Submit");
combo.addItem(" No Timer");
combo.addItem("30 Minutes");
combo.addItem("60 Minutes");
combo.addItem("90 Minutes");
combo.addItem("120 Minutes");
combo.addItem("150 Minutes");
combo.addItem("180 Minutes");
combo.setSelectedIndex(0);
start.addActionListener(this);
contentPane.setLayout(null);
contentPane.add(label1);
contentPane.add(name);
contentPane.add(start);
contentPane.add(combo);
name.addActionListener(this);
label1.setBounds(30,10,100,30);
name.setBounds(140,10,150,25);
start.setBounds(30,50,100,25);
combo.setBounds(150,50,130,25);
Dimension wndSize = Toolkit.getDefaultToolkit().getScreenSize();
setBounds(wndSize.width/4, wndSize.height/4,wndSize.width/2, wndSize.height/2);
setVisible(true);
public void actionPerformed(ActionEvent e) {
try {
startT = combo.getSelectedIndex();
if (startT == 0) {
// do something
stuName = (String) name.getText();
startT = -1; // Impossible to get -1 from this calcs, so we set it so we can check it later
} else {
startT *= 30*60*1000;
stuName = (String) name.getText();
dispose();
return;
catch (Throwable fe) {}
public long getStartT() {return startT;}
public void keyPressed(KeyEvent e) { }
public void keyReleased(KeyEvent e) {
if((name.getText().length() > 0))
start.setEnabled(true);
else
start.setEnabled(false);
public void keyTyped(KeyEvent e) { }
Module1.java(main class)
=========
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.BorderFactory;
import javax.swing.border.Border;
import javax.swing.border.TitledBorder;
public class Module1 extends JFrame {
long startT=0;
String stuName;
Clock2 applet = new Clock2(); // Unknown
class ImageCanvas extends JPanel {
ImageIcon icon;
public ImageCanvas(String imageName, String description) {
icon = new ImageIcon(imageName, description);
public void paintComponent(Graphics g) {
Insets insets = getInsets();
super.paintComponent(g);
icon.paintIcon(this, g, insets.left, insets.top);
public Dimension getPreferredSize() {
Insets insets = getInsets();
return new Dimension(
icon.getIconWidth() + insets.left + insets.right,
icon.getIconHeight() + insets.top + insets.bottom);
public Module1() {
super("Certification Exam");
JMenuBar menubar = new JMenuBar();
JMenu menu = new JMenu("File");
JMenu exam = new JMenu("Exam");
JMenu help = new JMenu("Help");
JMenu type = new JMenu("Type of Exam");
JMenuItem
newitem = new JMenuItem("New ..."),
olditem = new JMenuItem("Old ..."),
exititem = new JMenuItem("Exit ..."),
option = new JMenuItem("Exam Option"),
starte = new JMenuItem("Start Exam");
menu.add(newitem);
menu.add(olditem);
menu.add(exititem);
exam.add(starte);
exam.add("Load Exam");
exam.addSeparator();
exam.add(option);
help.add(type);
help.add("Implementation");
help.add("Update");
type.add("Windows Profesional");
type.add("Windows Server");
type.add("Active Directory");
Container contentPane = getContentPane();
JLabel none = new JLabel("");
JPanel panel = new ImageCanvas("cover2.jpg","LOGO");
panel.setBorder(BorderFactory.createRaisedBevelBorder());
panel.setPreferredSize(new Dimension(495,260));
//panel.setPreferredSize(new Dimension(960,500));
panel.setBounds(20,20,950,500);
applet.setBounds(430,550,150,150);
contentPane.setLayout(new BorderLayout());
contentPane.add(panel,BorderLayout.SOUTH);
contentPane.add(applet,BorderLayout.SOUTH);
contentPane.add(none,BorderLayout.SOUTH);
applet.init();
applet.start();
menubar.add(menu);
menubar.add(exam);
menubar.add(help);
setJMenuBar(menubar);
starte.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Option1();
option.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Optional();
public static void main(String args[]) {
JFrame mod = new Module1();
Toolkit theKit = mod.getToolkit();
Dimension wndSize = theKit.getScreenSize();
mod.setSize(wndSize.width,wndSize.height);
mod.setVisible(true);
mod.setResizable(false);
mod.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
public void Option1() {
Exam exam = new Exam(startT,stuName);
public void Optional() {
Eoption1 option = new Eoption1(this);
startT=option.getStartT(); -
NEED COMPILING HELP (10 duke points!!!!!!!)
Hi i'm using jedit, and i need to know why my compiler isn't working. As some may know that jedit has an inbuilt compiler called jcompiler. The results from the jcompiler are fine but when i try javac i recieve an error, and when i use java i recieve an error...
error for javac:
D:\>javac haha
javac: invalid flag: haha
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are us
ed
-classpath <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-help Print a synopsis of standard options
error for java:
D:\>java haha
Exception in thread "main" java.lang.NoClassDefFoundError: haha
the program:
class try {
public static void main (String [] args) {
System.out.println("Hello World");
}To the perosn or persons who completely solve my problem, they recieve 10 points (btw i made the prog haha in 30 secs but i'm still a beginner (a student) in java )HelloWorld.java :
public class HelloWorld {
public static void main (String [] args) {
System.out.println("Hello World");
}d:\somedir> dir
0:00 10101 HelloWorld.java
d:\somedir> javac HelloWorld.java
d:\somedir> dir
0:00 10101 HelloWorld.java
0:00 10101 HelloWorld.class
d:\somedir> java HelloWorld
Hello World
-Alexis
Maybe you are looking for
-
Gurus I Want to paste the below Details in the Payslip PE51 1. ESI number 2.Bank Name Text Kindly let me in this.
-
Using itunes without a mouse - Keyboard commands
I have several physically challenged Dragon Dictate (MAC) and Dragon Naturally Speaking (PC) users asking for custom Dragon commands which will allow them to control iTunes by voice. Has anyone created Dragon macros for iTunes? Does anyone have a l
-
How to design a flexible table display
I may like to make UI to display value as in the attached figure1. 5 factors can fix and point to one test point, such as region, station, panel, phase, level, from big to small scale one by one. Normally, user only care about station. But the prob
-
When I start up everything looks normal but when I choose an email to read, the loading green wheel comes out and takes a long time. If I try to press anything the (Not Responding) shows up on the tab above. When I wait for a minute or two, it works
-
HT4314 How do you find peoples profiles in gamecenter without being friends?
I want to find a profile for someone on Gamecenter to make sure that they are the right person I am friending, but it wont let me seach users. Is it possible?