3350 byte By
matleva at 2007-10-3 5:59:30
Hi everybody,I already read all kinds of threads about this topic, but I still get from Tomcat the error posted below (basically: "class file has wrong version 49.0, should be 48.0").I did everything someone ever posted to solve the problem, namely the following:- My PATH variable, as well as ...
Hi there, I need help with some code, here it is.import java.util.*;import java.text.*;public class InvestCalc {//declaration of instance variablesprivate double interest, principal;//default constructor, sets interest and principal to zeropublic InvestCalc() {interest = 0.0;principal = ...
12914 byte By
theDana at 2007-10-3 6:07:49
Hello,I have been programming in XCode, Mac OS X, and have been doing fine up until now.My problem:I had to use BlueJ to program somthing, and I have a big chunk of code, that works perfectly when I use the integrated compiler/VM.I wanted it to be a standalon application, So i copied the source ...
I'm new here, learning Java has be somewhat frustrating for me. I'm having difficult time with this so I would appricate your help... Error message at runtime was displayed ( It has to do with trying to parse a string that is not parsable into an int ):Exception in thread "main" ...
3687 byte By
jami52a at 2007-10-3 6:15:27
I'm totally new to Java, and so I am probably making a stupid mistake. I get the error:JPEST.java:39: cannot find symbolsymbol : constructor JPSTUDENT()location: class JPSTUDENTJPSTUDENT student1 = new JPSTUDENT();^JPTEST.java:40: cannot find symbolsymbol : constructor JPEMPLOYEE()location: ...
438 byte By
Lebaa at 2007-10-3 6:15:35
Hi evryoen,thanks for your time,I instaled JDK, on my XP O.S, It compailed the java filesbut I can not run it even helloWorld.java one.can you help me the error says:C:\JAVA_HOME\Test>javac *.javaC:\JAVA_HOME\Test>C:\JAVA_HOME\Test>java HelloWorldException in thread "main" ...
Ok i've been up for hours trying to sort this out and its just not working!When i try to compile a file usingjavac Simple.javaIt doesn't make a .class filebut it does when i type"D:\program files\java\jdk1.6.0\bin\javac" Simple.javaSure, i could just type in the above but it gets annoying ...
I'm using Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)on win xp SP2I have folder structure as follows:C:\temp\java\src\HelloWorld.javaC:\temp\java\src\com\trial\level\test\HelloWorld2.javaI'm trying to compile the files using sourcepath option but it seems it is not ...
Here is the code, in the code I have created a new button called ClickToPlay. Though when I compile this code I receive an error telling me that it cannot find symbolsymbol: constructor Button(java.lang.String)location: class Button ClickToPlay = new Button("Click her to play");Please, someone ...
I wrote a custom doclet in 1.2.2 a couple of years ago, and it's time to update everything to jdk 1.5. The custom doclet is very simple (not much different from Standard) but the 1.5 structure is extremely different from 1.2 .When I wrote the 1.2 custom doclet, I had to copy all the java ...
I have a project with about 550 java files. When I upgraded to this laptop (a 2.0GHz Core Duo) from a 1.8GHz Centrino, my build times went from 10-15s on the Centrino to about 35-50s on the Core Duo. I'm running in Linux, and I've tested using JDK versions 1.5.0_08, 1.5.0_09 and 1.6.0_b86 and ...
I have read tutorials on how to set the x and y coordinates for boxes, they have told me to do this <ButtonName>.setBounds(<x><y><widt><height>)Though when I do this in my code it does not work, it always keeps the box in the top middle of the applet. Here is the ...
hi everybodyi want to set the environment variables on Windows XP ProfessionalI had installed tomcat 5.0 and jdk 1.5 as well as jdk1.4when i run my war file( which is in webapps folder ) it gives an errorJAVA_HOME does not point to jdkBut i had already set environment variables but they r all ...
362 byte By
harriia at 2007-10-3 6:30:15
haii want to run a war file on tomcat serverbut is giving error:--JAVA_HOME does not point to JDKi have done folloing settings in environmental settings of windows xp professional as environmental variablesJAVA_HOME:C:/ jsdk1.4path=c:/jsdk1.4/binclasspath= c:/jsdk1.2/libplz help ...
Hi!I am trying to compile the mysql++ libraries on Solaris 8 using the Sun C++ compiler CC 5.3 version.but I get an error:"../../../../tools/mysql++/lib//resiter.h", line 53: Error: Invalid template parameter default.Can anyone let me know what can be the problem and whats the solution for the ...
1186 byte By
lonolfa at 2007-10-3 6:43:35
Hello,I am trying to do something simple.I have created directory structure /javacode. Under it there is directory called "maincode". Under "main" there are two directories "utils" and "threads".In threads I created a java file called Thread2.java:package main.threads;class Thread2 {}It ...
322 byte By
lonolfa at 2007-10-3 6:43:57
Hello,Are there any tools which automate the process of using javadoc?I am talking about a program which analyzes a .java file and adds a skeleton documentation ready for extension (each method with its parameters and so on), which can later be used to generate HTML files using ...
1014 byte By
abc4616a at 2007-10-3 6:47:01
I have a question about this part of the program:if (!editErrorFound){ if (hrs > 0 && rt > 0)staff = new Employee (fn, ln, pos, rt, hrs );elsestaff = new Employee (ln,fn,pos);}This part of the code would not compile. What should I do? Here is the error message:C:\Documents and ...
467 byte By
wf7777a at 2007-10-3 6:50:15
I've made a java program that processes text files with given extension. If the user click this kind file, it can be opened by the program. but the program can only be compiled into .class file or packed as .jar file, so the text file can not opened by .jar program. The user must run .jar ...
Hi All,How can i do java doc for packages like I have a root directoryTMS and subdirectories like A,B,C,D,E.....Up Z...How can i do it.
I am getting a the "Exception in thread "main" java.lang.NoClassDefFoundError: "When i try to run any file with the command "java". I have tryed to use the -cp command but that does nothing. If i have a dir with to files test.java and test.class and i type "java test" I get the message ...
Hey all, can someone help me overcome this problem with one of the java applets."The Java applet returned an error.Please contact customer support for technical help.The error code is, please make a note of it:java.lang.Exception: 001b-0001-0000-0000 at ...
2952 byte By
DirkBWa at 2007-10-3 6:54:49
Hello,apt is indeed a powerful tool. As long as it's working as expected :PMy problem here is that I wrote a new Visitor that also checks for Package annotations. As you may already know: package annotations have to be used in a file called package-info.java which may look like this:/**My ...
146 byte By
darksssa at 2007-10-3 6:55:41
could I use cmd to compile and run a java program?so instead of using jcreator, or eclipes could i type it into cmdif so how?
Hi, I am currently trying to instrument a Java class with module calls to a Monitor and some state variables. So I have been trying to play with the mtrace.c provided in the demo section of the jdk download. Initially, there was the "opcode.h" not found ( which was spoken to about in the past ...
I get cannot find symbol textio and symbol romanconverterI need help to fix this and understand what i did wrong or did not do.Im trying to write a program that has the user input numbers and the the program outputs roman numbersI hope that i am close to getting there!public class ...
Hi all,I am trying to insert string in mysql using java query.As I have taken field varchar,that should be in single quotes,whereas string is having double quotes...so as I am trying to insert data that gives null value all the time.I did like: String name=jTextFieldname.getText();...String ...
I am writing my own doclet that could gather data that I want to use in the class that calls my own doclet. Is there a chance to do this?
1452 byte By
limorma at 2007-10-3 7:04:47
Hi,I encountered a problem while linking to Javadoc from our Online Help.The problem I encountered was when trying to link to any specific class in the Javadoc, in the following way: http://www.gigaspaces.com/docs/JavaDoc/index.html?com%2Fj_spaces%2Fcore%2Fclient%2FMetaDataEntry.html as apposed ...
Okay, ive got a little project im working on, it has 4 classes, 3 of which contain all non-static methods, and one of which contains the static main routine..on compiling i get this error:non-static method printHistory() cannot be referenced from a static contextdoes anyone know how to get ...
We have a couple of custom taglets for which inType() returns true. The taglets work OK for class javadocs, but are printed almost literally when use in interface javadocs.I've been prowling around various search engins and the bug parade for a while today but find no mention of this. Anybody ...
2313 byte By
pocniba at 2007-10-3 7:08:57
not sure why but is returning StringIndexOutOfBoundsException somewhere in the while loop, therefore second while loop only returns null, any ideas why exception is occuring?public void viewAll(){int c=0;int len = 0;try{String title;String genre;String rate;String time;raf.seek(0);String line = ...
HI,I'm working on a linux based system and I need java for programming projects but when i want to compile a project, I get the error:-1. WARNING in Og05_08.java (at line 8)public class Og05_08 extends Applet implements ActionListener ^^^^^^^The serializable class Og05_08 does not declare a ...
95 byte By
becxiera at 2007-10-3 7:11:01
What does this erro mean? and how do i solve it?NoClassDefFoundError: IQueenState
I've read a ton on this topic but none seem to fit my needs. I continue to get the "cannot be referenced from a static context" error. I understand that it is because I am referencing a method that is not static in another class, with a static main method of another class but from my ...
Does anyone have any experience with unit-testing annotation processors? I'm working on an annotation processor that checks various constrains on declarations and issues warnings if something's wrong. Is is possible to test something like that short of "brute force", running APT and then ...
57 byte By
himaa at 2007-10-3 7:17:08
Is it possible to merge javadocs?If so how?
Hi,I've been searching the web for something *simple* that will convert thejavadoc in my java application to LaTex.So far what I've found is eitherout-of-date, too complicated (i.e. "all you've got to do is compile and linkthis wonderful C program ...") or is simply not explained (what the ...
Hi,i googled, looked at the javadoc-doc but found no answer. How do i make a newline in an function description in javadoc? So i have much text want to make a linebreak, how can i do this?! Thank you!!!
648 byte By
SHIFTERa at 2007-10-3 7:27:47
I cannot see what is wrong with this code but i can't get it to compile. when i try to compile it i get the "Exception in thread "main" java.lang.NoClassDefFoundError:Is this a problem with compiling or is it a code error?Here is my codepublic class IntCalc{int value;public IntCalc(){value = ...
I'm experiencing a couple of problems when trying to run the Cisco IPS Device Manager (IDM).First, I launched the IDM and received an error that I needed to upgrade to 1.4.2 or higher. So I upgraded my JSE to 1.4.2_12.Then I launched the IDM again and received an error that my heap size was ...
I am not allowed to use an IDE for a SE course I am taking, and I am supposed to write classes using a text editor and test with ant/junit combo. Everything works fine except for javadoc. Whether from the command line - javadoc *.javaor in ant - ant docI keep getting this message after it finds ...
Hello, I am having some trouble trying to figure out how to call a method with arrays instantiated such as: public static int readProducts(String[] products, double[] prices, int[] quantities){We have never done method calling that has arrays in it and don't know how to set up the main ...
Hello,I am developing a Java decompiler and Bytecode debugger for my MEng dissertation project.I have written a very short (< 1 min) questionnaire which i have already distributed to students at my university, however I would like to have individual and industry developers (such as ...
When I was in the Labs at Uni, I created a simple program called Packing.java, nothing too challenging, as we have only just started learning java - code belowpublic class Packing {//global declarationsstatic final double shift_length = 14700f;public static void main(String[] args) {//local ...
I am new to using Javadoc and i have a few queries.1) I need to include examples in the Javadoc output..How do i do that?2) Also if i have to add taglets or doclets, what syntax do i have to use when using ANT?3) How do i change the frame structure of the standard Javadoc ...
i downloaded jre1.5.0_06 and i'm trying to run some application at cmd or command prompt but this message appear: Unable to start the application--the Java Virtual machine cannot be loaded.any help? thanksryan
Hi all,I made a file called mylist.txt containing some java classes.C:\jdk1.4\bin\DMD\*.javathen when i try to generate javadoc then i am getting the following error i have kept the mylist.txt in C:\jdk1.4\bin\mylist.txtjavadoc: cannot read mylist (The system cannot find the file specified)1 ...
2067 byte By
anh000a at 2007-10-3 7:50:15
i have create 2 class this is the first classpublic class Book{private String BookTitle;private String BookAuthor;private int yearPublished;public Book(String Title, String Author, int yr){BookTitle = Title;BookAuthor = Author;yearPublished = yr;}public String getTitle(){return ...
I'm getting the following errors intermittently (once every few hours) on a Java/Jni/C application. I would usually blame the C code except that the error is happening in the JVM, always at the same point. Could this be a JVM issue? I've seen it in 1.50_06 and 1.50_08.## An unexpected error ...