Compiling Java program from other java program

109 byte By Shravanmsccsa at 2007-10-1 3:26:55
Hi,How can I compile and capture the compilation result from another java program?Thanks

Dude, wheres my compiler!

257 byte By Spencer71a at 2007-10-1 3:28:56
the error message i get when trying to compile (javac ....) is:'javac' is not regonised as a internal or external command.it use to work - has installing ecilpse or the newish netBeans 'mullered me!'Please help..Spence

bad url error

526 byte By virgirl920a at 2007-10-1 3:29:39
Hi. I cannot run applets in Jgrasp...when I try, this is the error: -jGRASP exec: appletviewer jgrasphta.htmBad URL: Files\Java\j2re1.4.2_05\lib\ext\QTJava.zip;C:\Program Files\jGRASP\extensions\classes ( no protocol: Files\Java\j2re1.4.2_05\lib\ext\QTJava.zip;C:\Program ...

Java script Errors while using DREAMWEVER MX 2004 7.1.0

406 byte By web313a at 2007-10-1 3:34:30
Every time I save a page the following error pops up twice?while executing onload in tempURL_aftersave.htmthe following Javascript errors occurredInfile""tempURL_aftersave""Reference Error: aftersave is not definedThis shows up twice now every time I save a page? I can still save pages but ...

imports

1426 byte By patyorka at 2007-10-1 3:35:47
Hi all, My company has some classes they developed but I do not undersatnd how to compile this code below.How do I tell the compiler to find the paths listed in the import command ?The error says none of the imports are found.import Sapphire.CAP.*;import Sapphire.ITA.*;import java.util.*;import ...

installation

271 byte By marimaria at 2007-10-1 3:55:59
Hi!My english will be perhaps terrible: i'll try to make me understand.I've installed jBuilder 5 from a my old friend's CD. But when I've tried to run the programm an alert window ask me for a code and a key.WHAT HAVE I TO DO?tHANKS

Mortgage Calculator

2430 byte By exxfactora at 2007-10-1 3:59:34
I am trying to run this program can someone tell me why this program is not running and if there is a better way I should have written this program give me some ideas. Here are the error messages I have been receiving.errors: RexMortgageCalculator2.java:28: ')' expecteddouble discount = ((1 + ...

Using a CSV Parser class

1968 byte By bluesourcea at 2007-10-1 3:59:43
Ok so I've been wrestling with the issue of CLASSPATH and packages for the last week or so, and I'm truely, completely fed up. Maybe there's a kind soul to show me my mistake?Here's the codeimport java.io.*;import com.Ostermiller.util.*;public class Extractor {public static void main ( ...

Build.xml does not exist!

437 byte By emily_2004a at 2007-10-1 4:01:49
Hi ,I'm doing the converter program (EJB) from J2EE1.4 Tutorial. I installed J2EE1.4 already. I copied converter programs to different directory, not the same dir like tutorial. When I type--c:\sun\appserver\bin> asant build.xml, it shows build.xml does not exist. I copied build.xml to the ...

newInstance no longer compiles

503 byte By jordanza at 2007-10-1 4:05:01
Can this be right? This no longer compiles in 1.5 (works in 1.4)Classthe_class = Class.forName(class_name);Constructorthe_constructor = the_class.getConstructor(null);x = the_constructor.newInstance(null);To work in 1.5, I have to change to:Classthe_class = ...

Compiling multiple packages

185 byte By gmm2064a at 2007-10-1 4:11:51
Hello All,I have source code distributed in 20 packages and I cannot use an IDE to compile it. Can anyone suggest how can I compile these packages?Thanks in advance

Compilation and Deployment issue.

639 byte By Bindaasa at 2007-10-1 4:15:22
Hello Friends,I have little doubt in the concept of compliation of java source. If any application compiled using some jdkversion say 1.4.1_02 , but after the compilation the executables have been deployed on WAS sever which has jdk version say suppose 1.3.1_07. So if that appliction using some ...

Compilation and Running

397 byte By Bindaasa at 2007-10-1 4:21:14
I complied the java source code into class file using some jdk version .My question is that now during the execution time the references to varoius packages , classes will be required as it was required during compilation or not....In other words, once source code was compiled then no ...

regarding catalina tom cat

703 byte By chellamchikia at 2007-10-1 4:21:27
i got the following error when i gave the ./startup.sh command in linux to start the web serverwhat shud be done regarding this?EVERE: Marking this application unavailable due to previous error(s)Feb 4, 2005 12:31:00 PM org.apache.catalina.core.StandardContext startSEVERE: Error ...

Having problems compiling

5391 byte By nikki1211a at 2007-10-1 4:30:27
import java.text.DecimalFormat; //class for format decimalsimport java.awt.*;import javax.swing.*;import java.applet.Applet;import java.awt.event.*;public class Mortgage extends JFrame {private MortgageCal2 mortgageApplet;private void ...

Problems implementing comboboxes and having the program work

6706 byte By nikki1211a at 2007-10-1 4:35:07
import java.text.DecimalFormat; //class for format decimalsimport java.awt.*;import javax.swing.*;import java.applet.Applet;import java.awt.event.*;public class MortgageCal2 extends JApplet { JLabel principal_Label; JLabel interestRate_Label; JLabel termYear_Label; JTextField principal_TF; ...

Empty MyClass$1.class

764 byte By TimTheEnchantora at 2007-10-1 4:41:43
Hi,Let's say I have a class called MyClass, with an inner class MyInnerClass.When I compile with my IDE, I have two resulting class files:MyClass.classMyClass$MyInnerClass.classBut when I compile using an Ant script, it generates the following class ...

new to compiling - please help

740 byte By donnbobhardya at 2007-10-1 4:51:09
Alright, I have placed c:\j2sdk1.4.2_07\bin in the PATH system variable. I also placed c:\j3sdk1.4.2_07\jre in the CLASSPATH system variable. I am trying to compile a multifile program, where MailSystemTest is the class with the main function within it. If I compile using "javac ...

System Not Recognizing Javac

340 byte By Onebluephisha at 2007-10-1 4:51:15
Sytem: Windows XP Home EditionJava Version: 1.4.0'javac' is not an internal or external command, operable program or batch file.How do I set my classpath? Please dummy down starting at the Advanced Tab in System Properties. =) That is, before I break down in tears of holy frustration.Thanks ...

Missing { When its not Missing

3631 byte By Lord_8a at 2007-10-1 5:08:10
In the following code, when I attempt to compile, I recieve an error message about a { being missing, yet I could not see one. Any ideas?package Epsilon.HTTPServer.MethodHandlers;import java.io.*;import java.net.*;import Epsilon.HTTPServer.*;import Epsilon.HTTPServer.MimeHeader.*;public class ...

Problems compiling

4734 byte By Gopal_Gopalakrishnana at 2007-10-1 5:12:17
Hi there java experts:I have a strange problem. Well, I have 2 problems.Problem #1:--For some reason, I get compile errors when I use the ByteArrayOutputStream class in my code. I use jbuilder as my ide. I tried in eclipse, I have the same problem.Here's my code:package test;/** * Title: * ...

Please Help me !!!

298 byte By ebzKhana at 2007-10-1 5:17:40
I want to save my errors generated by javac to a file instead to screen I am using JdK 1.4.2 in WInXP. I used the command javac Hello.java >& output but it says soemthing like :" >& was unexpected at this time". Please Help me on it

Cannot access JScrollPane, bad class file !!!!

4787 byte By hodaba at 2007-10-1 5:31:00
Hi everybody. I have got a big big problem. I can not compile my code because this message alwayes is displayed: C:\Java\hosseindab\Dabb.java:8: cannot access JScrollPane bad class file: .\JScrollPane.class class file contains wrong class: javax.swing.JScrollPane Please remove or make sure it ...

PLEASE HELP - CANNOT GET CLASS TO COMPILE

4377 byte By milliondollarmana at 2007-10-1 5:40:10
Hi all,I very been trying to compile and run some code using "JOPenChart" a free charting tool, but I am having many problems. Here is the small class:import de.progra.charting.*;import de.progra.charting.model.*;import de.progra.charting.render.*;import java.awt.*;import java.io.*;public class ...

Stringmessage Error

290 byte By Onebluephisha at 2007-10-1 5:50:15
When compiling this code I get 3 errors on this line:String message = "Numerical Grade: " + inputString + "\n" + "Lettergrade: " + letterGrade + "\n" + "Press OK to exit.";Those signs in bold print come up as errors.Thanks in advance.

Using JAR files when compiling in Windows command line

165 byte By milliondollarmana at 2007-10-1 5:50:59
Hi all,I can't get my JAR files to be recognized. Cananyone help with classpaths, syntax etc. when compiling Java in Windows?Thanks in advance.

invalid method declaration; return type required

463 byte By newbie@javaa at 2007-10-1 5:52:52
could not get this to work..could someone please help me on this. thanxheres part of my code//public static int howMany() { return sStudents; }//public getName() { return name; }//public int getGrade() { return grade; }//} // end class ...

Eclipse does not compile my .java files.

515 byte By Larsson77a at 2007-10-1 6:07:38
Hello,I have an eclipse project which just now started to give me this problem.When I run a class, I get the errorException in thread "main" java.lang.NoClassDefFoundError: [class name]When I look in the folder where the java file resides, no class file has been generated soits no surprise that ...

transfering java code from windowsNT to unix

399 byte By imrantak2a at 2007-10-1 6:07:59
hi, i am writtimg an application using swings on windows OS .But finally a user will use it on unix os, so i will have to ensure that the application runs smoothly on unix also, but there are some issues to be solved like, path of files(in windows we have like C:\\)backslash is used but in unix ...

unchecked problem while compiling

754 byte By Icarus5a at 2007-10-1 6:10:00
When compiling, I get a non-fatal warning, 'unchecked', what ever that means. It is the command flag Xlint-unchecked or something.The code is a static hashtable which I am statically putting elements into:public static Hashtable variables = new Hashtable();static{ variables.put("###",...); ...

javac Compiler Error Redirection to Log File

673 byte By RaZcaLa at 2007-10-1 6:17:57
I have a bunch of javac command in a DOS batch file and I want the output to be redirected to a log file.Here's an example :ECHO ECHO - Compilation Started ... -ECHO ECHO.ECHO Compile ...javac -d classes -classpath .;lib\dbswing.jar src\graphic\*.javaECHO Done.ECHO Compile ...javac -d classes ...

javac -g perfermance impacts

346 byte By opxa at 2007-10-1 6:18:10
I'm wondering how much impact in performance when we compile with debugging info compareing with when we compile without it. I know the compiled file size is much bigger, but how about performance, especailly running in production environment? I just don't want to miss the line number info ...

Compiling ant 1.6.2 for Solaris 10 x86

1214 byte By vvrmurthya at 2007-10-1 6:20:24
Hi,I need to compile Ant 1.6.2 on Solaris 10 x86 edition (S10 x86 comes with ant 1.5.4 but some of the newer ant syntaxes are not supported in 1.5.4). When I tried doing the compile using Ant 1.6.2 sources from ant.apache.org, I get the following ...

Manifest File

378 byte By psp_prasada at 2007-10-1 6:35:36
Does javac command recognizes the Class-Path entry in the Manifest.mf file of a jar file which is set in the class path. For example, javac - classpath lib..jar -d . MyApp.javawhere the Class-Path entry of Manifest.mffile will have log4j.jar etc jar file values.Now does the complier recognize ...

Error running jikes compiler

524 byte By vinchya at 2007-10-1 6:40:59
I just can understand what's happening!!I run build.xml under Eclipse,the first time he compiled my .war (run ant release)and now nothin has changed and it doesn't want to compile anymore!!!the error i get is :Buildfile: C:\app\prj\ecopeoplefr\build.xmlcompile:[javac] Compiling 208 source ...

Javac options

668 byte By jdoylera at 2007-10-1 6:55:24
Hi,I have a number of packages of java files. Some of them have compile time errors some of them dont but they are all mixed in together. When I try to compile them the java compiler will not generate any class files because of the classes that have compilier errors. I'am wondering is there ...

Running a Java Program

288 byte By Rajesh@pbsystemsa at 2007-10-1 6:55:53
Hi I am new to Java Programming. I have Eclipse Platform, I have written a smallJava Scripts.When I am running the Program a "Create,Manage and Run Configurations" Option is Displaying.Can someone Tell me What I have to do Next.Please HelpRajesh.

Java on Eclipse

184 byte By senthils_systeca at 2007-10-1 7:01:58
Hai,Iam working java on Eclipse platform. Is there any shortcut keys to run a program on this platform.can any one help me....Regards Senthil Ganesh.

Javamake tool

200 byte By Zoroastrua at 2007-10-1 7:06:43
Recently I experimented the Javamake tool from Sun. It's working fine butnot with JDK 1.5.Is there a new version of Javamake tool that works with the new class format(49.0) too ?

Trouble Compiling

268 byte By Dave199a at 2007-10-1 7:06:47
My JDK tools are in C:\Program Files\Java\jdk1.5.0_01\bin and im putting my source codes in C:Java Programs. The Problem that i am having is that i can't seem to get javac to compile my codes in Java Programs folder. If there is anyone that can help me. Thanks

Dynamic invocation of javac with custom class path.

2293 byte By ravinaga at 2007-10-1 7:08:19
To all the Java Gurus out there,Consider the following classes:XYZ/test/TestUtil.javapackage test;class TestUtil { void useMe() {// .. }}ABC/test/Test.javapackage test;public class Test { public static void main(String[] args) {TestUtil t = new TestUtil();t.useMe(); }}The class Test uses ...

running a net beans gui / code

390 byte By herxlnca at 2007-10-1 7:14:20
Hello AllI'm new to java and kinda slowI tried searching thru the help but it didn't help.How do you run the program so the gui starts too...ive compiled and when i got run (i think its f6) its says build successful..but the forum doesnt startthank you inadvance(sorry if this is posted ...

Compiling Problem

613 byte By Arivalea at 2007-10-1 7:14:47
Hello, I cannot compile programs at home. I am using j2sdk1.4.2_04 on a fresh windows xp load. By a fresh load I mean the only thing on the machine is the OS drivers and the j2sdk. I am using textPad to write programs. When I compile I get the following error.bad class file: .\Math.classclass ...

Setting Default compiler

493 byte By dalemana at 2007-10-1 7:28:00
I have a rather weird problem - I have installed 1.5 but if I compile from the command line, 1.4.1 is still invoked - I knew this by using the javac -verbose option.This leads me to 2 interesting questions :1) Is there a command line option to simply print back the version a la javac --version ...

Scripts Help!!

175 byte By poh1210a at 2007-10-1 7:28:05
I have a question to make....I have an HTML project that is using 2 jscripts.....how can i run the scripts? or How can i attach them to a Java Project?Help Me!!!

Uncallable method

777 byte By IronMastera at 2007-10-1 7:28:14
Using generics, I accidentally managed to define a method which compiles without error but which cannot be called. This short example overloads methodA(). When trying to call the first occurent of methodA() the compiler complains about an ambiguous reference. I've tried to explicitely cast the ...

please explain.

992 byte By marius_tabaca at 2007-10-1 7:28:27
ok i have this code : the question is this why after i compile the file i have a file named loadBMP$1.class ?that is that and why if i put the applet on a web page it does not load unless i have both loadBMP.class and loadBMP$1.class on the disk ? thy does not work only with loadBMP.class like ...

ant not always compiling inner classes

369 byte By synicmana at 2007-10-1 7:37:09
hello,Every once in a while I get a troubled inner class. Ant doesn't always compile it (or maybe ant doesn't move it to the build directory). It's always the same inner classes... The compile will succeed, but when I run the program, it says that it's missing a class. ant clean fixes the ...

Javabean subclass does not compile.

3125 byte By YBRa at 2007-10-1 7:44:43
Hi, Experts,I'm new to jsp and javabean. I have a very simple base class Book.java and a subclass TechnicalBook.java. The file structure is as ...

Using different JDK's...

1085 byte By jacklera at 2007-10-1 7:47:28
Hi,I compiled several classes with JDK 1.5. When trying to start them under JVM 1.4 I get the following error message:class file has wrong version 49.0, should be 48.0I'm compiling my classes by a custom ant script:<target name="compile" description="compile"><mkdir ...