35,619 Topics

Member Avatar for
Member Avatar for WolfShield

I've run java programs in Command Prompt before and it worked, but today I tried and it's saying: 'javac' is not recognized as an internal or external command, operable program or batch file. I am running Windows Vista and have four (4) files under Java: jdk1.6.0_23 jdk1.6.0_24 jre1.6.0 jre6 Umm, …

Member Avatar for DelphiGuy
0
232
Member Avatar for Tazsweet19

I made the 4 buttons with top, move up, move down and bottom. But I took open the files for test.txt in LJist and it won't move it How do I add something. I will show you the code. And I saw Error for to press move down, it won't …

Member Avatar for Tazsweet19
0
143
Member Avatar for Katana24

Hi, im trying to create a GUI which will house a BST. When the user enters a number and clicks add, it should display that number as a leaf in a BST. It then adds each consecutive leaf onto the last to create the BST. My problem is actually getting …

Member Avatar for Ezzaral
0
2K
Member Avatar for WolfShield

Hello, I have a program that has three text areas, and I'm going to add an image viewer. My question is how to save and load the text and images so that when the user clicks 'save' it will save a file with the text and images, and when the …

Member Avatar for sourabh17
0
150
Member Avatar for megsilm

Hi, I am having trouble having the answer increment, I know it seems the increment value is lost in the method but I cannot find a way to make that work, can you please give some suggestions. Thanks. This program is supposed to ask the user to enter sales amount …

Member Avatar for jon.kiparsky
0
282
Member Avatar for zainz

there is a problem with java code i need your help plz as soon as you can [CODE]import javax.swing.*; import java.io.*; /** *Homework #1 CaesarCipher.java *program to encrypt and decrypt stuff */ public static void main(String[] args) { ceasar1 cc = new ceasar1(); public class ceasar1 { public String dataencyptS, …

Member Avatar for zainz
0
255
Member Avatar for kris0r

Hi all, I'm writing a webcrawler as part of a search engine project at university, and have been using jsoup to my advantage. This connects to a page and neatly takes all the href's from anchor tags for me. However, when I add these to the arraylist of URLs waited …

Member Avatar for mKorbel
0
513
Member Avatar for anti_genius

Hi, Can anybody tell me how can i set attributes of frame or components in a frame in ActionListener of a button. Regards.

Member Avatar for alastair1008
0
156
Member Avatar for Ssnowlin

I am trying to build a compiler using Java Code. I am stuck at the Lexical Analyzer Stage and am not getting the output I want. The Code: 1)Lexical Analyzer [CODE] public class LexicalAnalyzer { int lexemebegin; int state; Symbol tokenValue; TokenType currentTokenType; String Shura; int lineNumber; int position=-1; String …

Member Avatar for Ssnowlin
0
388
Member Avatar for kukuruku

Hi ,I am trying to catch exception if integer is out of certain interval ,how can I do that. Lets say that float variable has to be in the interval 2 to 5 in all other cases exception Thanks

Member Avatar for mKorbel
0
104
Member Avatar for cwarn23

Hi, I am rendering a bunch of cg images but now I need to make an applet that will view them. More specifically these images are very much like the first generation of google street view where you have a picture and you can get a camera to crop a …

Member Avatar for mKorbel
0
175
Member Avatar for sj5536

hi i am trying to execute mysql stored procedure from java program but when i call that procedure CallableStatement stmt = con.prepareCall("call readFloor()"); it produce java.lang.NullPointerException at com.mysql.jdbc.StringUtils.indexOfIgnoreCaseRespectQuotes(StringUtils.java:948) so how can i remove this error readFloore() is sample stored procedure it return nothinh i tried this example whith another stored …

Member Avatar for mKorbel
0
152
Member Avatar for mayursharma

Hello , I am new to jsp as well to wml too .. Problem is with Session variable . the page on which session variable are made , they are extracting on that page easily .... but on other pages ...they contain null values ...i am not able to get …

Member Avatar for mayursharma
0
740
Member Avatar for wild_angel

Hi all, I have a problem with jsp. I created jsp and there is a table within this page. The columns are based on query from database. When the datas are not too many, the table looks fine. But when it has so many datas the table got messy. But …

0
112
Member Avatar for CorruptionInc

OK, so here's my assignment...ask the user for a sentence, then print each word along with its position in the sentence. Then ask for another sentence... if the sentence is empty, terminate. My code works... but I don't know how to get it to loop back to asking for another …

Member Avatar for CorruptionInc
0
116
Member Avatar for Poopster01

I have written my first class and I was given a driver program to test my class it might seem silly but how do I run the driver file to test my class Description: Java Class Die that will manage a roll of a six-sided die. The Class will include …

Member Avatar for thekashyap
0
225
Member Avatar for susheelsundar

Greetings Everyone. :) My question is, is there any website which has intermediary java programs, i am concentrating on importing classes, Methodoverloading, Constructors and etc, i want some guidance with various examples, Do you have any suggestion? Adv Thanks, Susheel

Member Avatar for jwenting
0
102
Member Avatar for aswad56

Can anyone change this to polymorphism? it is a simple program. no calculation at all. but the problem is, everytime i'll try to use polymorphim or extanding the classes, error occurs. actually i wish this program is in polymorphism structure, but im not really good in it(polymorphism). [code] import java.io.*; …

Member Avatar for thekashyap
0
92
Member Avatar for jinglylime

hi, im trying to make a bike move by using the pedal() method, the method will move the bike forward a distance of half the circumference of a wheel. ive tried creating the pedal() method however when the method is invoke the position of the bike is still the same. …

Member Avatar for thekashyap
0
131
Member Avatar for Skyelher

[CODE]TreeSet goodWords = new TreeSet(); ... Iterator iterGoodWords = goodWords.iterator(); while (iterGoodWords.hasnext()) { String word = iterGoodWords.next(); System.out.println(word); }[/CODE] Tell me, why doesn’t that print anything even if there are some items in the goodWords collection? I know there are items in the set because when I check the size, …

Member Avatar for Skyelher
0
172
Member Avatar for SaranyaKrishnan

hi, v converted a .mov video file to an .avi file using a online converter. When v try to play it by creating a Player object, it says the error: Unable to handle format mp42. We have typed the code in netbeans 6.9 and it works fine for other .avi …

0
61
Member Avatar for sariberri

This is my first time making a GUI and we're making a stopwatch...I figured everything out except for how to make the time elapsed have one decimal place ex: 1.1 seconds this is what I have so far [CODE]public void actionPerformed(ActionEvent ae){ stop.setEnabled(true); long endTime; if(ae.getActionCommand().equals("Start")){ display.setText("Start Button was Pressed"); …

Member Avatar for sariberri
0
215
Member Avatar for sirlink99

I have a little problem with my if statement. I have a code where I am comparing if a sprite has moved far enough for another one to generate behind it. Here it is (the dots are choped out code): [CODE]if (unit > 0) { if (moved > speed + …

0
82
Member Avatar for kubiak

[code=java]class Rectangle { int x, y; /* dalsi atributy */ public void moveLeft(int distance) { x -= distance; repaint(); } public void moveRight(int distance) { x += distance; repaint(); } public void moveUp(int distance) { y -= distance; repaint(); } public void moveDown(int distance) { y += distance; repaint(); } …

0
42
Member Avatar for lse123
Member Avatar for mkab

Hello everyone, I'm programming genetic processes in java for my project and I want simulate the mitosis of a human cell. A human cell contains 23 pairs of chromosome. Mitosis is basically a cell division, or reproduction, in which a cell gives rise to two genetically identical daughter cells. You …

Member Avatar for mkab
0
233
Member Avatar for cgeier

I am trying to automate a login to a website and then navigate to a webpage and retrieve the html from the page. I found some examples of how to login, but am having difficulty figuring out how to navigate to another page once logged in. I've read some information …

0
94
Member Avatar for tunlinaung

When i run the Java's window applications with default settings, theme is automatically changed from Aero theme to Window 7 basic theme. However, I wish to run Java's window applications without changing theme. I want to run this with current theme. How can I do for this? Please help me.... …

Member Avatar for JamesCherrill
0
226
Member Avatar for stupidbumbum

Mary plans a round-world trip in which he would like to visit a number of friends at each city she stops at. She sorts the cities according to the number of friends so she can visit P friends at Pth city of the trip, where k = 1, 2, ...., …

Member Avatar for jon.kiparsky
0
90
Member Avatar for solomon_13000

I attempted to start ActiveMQ and I am getting a list of error information. I attach herewith the log for your kind reference.

Member Avatar for mKorbel
0
134

The End.