36,051 Topics

Member Avatar for
Member Avatar for drogba123

Hi guys, i wonder why i get this error could not find or load abc. Basically i am using command prompt to run the java file. The command is like this: java -cp weka.jar abc then i have that error show above.

Member Avatar for NormR1
0
179
Member Avatar for spixy

Waaah, i got a project, but I can't get it write, i'm not bad at programming but,it's just happen my professor is really busy. teaching is just his part-time job. I can remember we stop the discussion somewhere introducing objects.. but haven't really discussed about things lets go back to …

Member Avatar for spixy
0
4K
Member Avatar for jsp_novice

Hi, I am having trouble debugging this code.Please be kind enough to have a look.[CODE]<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Bogus Order Calculate</title> </head> <body> <H1>Bogus Order Calculate</H1> You ordered these items: <form action="FinalizeOrder.jsp" METHOD="POST"> <% if("Dictionary".equalsIgnoreCase(request.getParameter("book"))) { %><input type="hidden" name="book" value="10.00"> a Book<BR><% } if("Coffeecake".equalsIgnoreCase(request.getParameter("food"))) { %><input type="hidden" name="food" …

Member Avatar for jsp_novice
0
136
Member Avatar for picogenkaku

Good day everyone, I have a question. I am constructing a timer in Java console, wherein this timer should be located in one corner (such as upper right). I can only make it count up on its own place. My question is how can I place the code on the …

Member Avatar for stultuske
0
142
Member Avatar for Thermalnuke

Hey guys I got a problem, my program is suppose to take 10 numbers or grade scores and output the max, min and avg. score. My program writes out the max and the avg, although the avg dosent come out correctly because i am not getting a min for a …

Member Avatar for Thermalnuke
0
141
Member Avatar for sirlink99

I have devised a quick little program that captures the screen and puts it in a vector, but my problem is that when I go to save it gives me this error [code] - create processor for the image datasource ... Setting the track format to: JPEG - create DataSink …

0
54
Member Avatar for mags11

I am trying to figure out this one out. The directions: Write a class named car in the following fields: [LIST=1] [*]yearModel - The yearModel field is an int that holds the car's yea model. [*]make - The make field references a String object that holds the make of the …

Member Avatar for stultuske
0
12K
Member Avatar for MrHardRock

Hey guys, I have the assignment of writing the Towers of Hanoi program then testing it. I already got help measuring the time of the program, but that is not what my professor wanted he wanted to count the iterations. I can't get it down, my program will run but …

Member Avatar for MrHardRock
0
2K
Member Avatar for summey

Below i have my Main class and a MortgageCalculation class I am trying to modify my app to do the following: "Modify the mortgage program to display 3 mortgage loans: 7 year at 4.35%, 15 year at 4.5 %, and 30 year at 4.75%. Use an array for the different …

Member Avatar for NormR1
0
214
Member Avatar for Majestics

I am using jasper report (ireport for designing). I want help regarding to set [B]relative path[/B] of the [B]images and jar[/B] files for report... As the jasper report pick up the [B]absolute path[/B] so it create problem when the drive is changed or even pc is changed... Kindly please help …

0
84
Member Avatar for getack

Hello All! I am making a simple four-in-a-row style game where 2 players can play against eachother. This is part of an AI course I'm taking where we should demonstrate the machine (the AI) playing against the player. The game part of the game and the gui are completely separated. …

Member Avatar for rfq
0
3K
Member Avatar for riahc3

Hello I feel stupid for actually asking this but how do I ping a IP address in Java? I have this code [code] try { // Google.com if (InetAddress.getByAddress("173.194.35.133".getBytes()).isReachable(1000)==true) { //Boolean variable named network network=true; //Ping works } else { network=false; //Ping doesnt work } } catch (UnknownHostException e3) { …

Member Avatar for riahc3
0
984
Member Avatar for shubham123

**hi ... i am new in java swing. i am using netbeans. i've two frame named jFrame1 & jFrame2. jFrame2 contains a jTable. jFrame1 contains a jTextField & a jButton. while user input a value in jTextField and press JButton, jFrame2 will appear and output (from mySQL database) will be …

Member Avatar for mKorbel
0
142
Member Avatar for noobies

Hye all, I had a difficulty in codes a ball collision in java. Is there anyone could help me to code it. Here the requirement: 1) There will be two balls in the same size. 2) They move randomly at constant speed until they meet each other. 3) Once collided, …

Member Avatar for NormR1
0
196
Member Avatar for YiJun

Hi! I'm a newbie at java and I need help with an inventory program for a school project. I planned the inventory program for the user to keep track of their inventory in MMORPGs. I want the user to be able to add, delete, update, sort the items, also be …

Member Avatar for YiJun
0
2K
Member Avatar for DanOath

I am supposed to write a method to display a pattern as follows: ________1 _______21 ______321 _____4321 ____54321 ___654321 __7654321 _87654321 987654321 (underscores are simply placeholders to show alignment on my post they are not actually part of the printout) My program works and prints the aforementioned code correctly, however …

Member Avatar for zeroliken
0
401
Member Avatar for Thermalnuke

hey here is what i got.... i get an error after my while statement that i need a ; after my while but that dosent make any since, cause there shouldnt be any ideas???? suppose to be an easy loop statement if the string does not contain @ then keep …

Member Avatar for Thermalnuke
0
97
Member Avatar for frivolous

i want to read mp3 file and extract its features which i will use further for identifying mood of song. can u help me in extracting feature of mp3 and which feature will b most appropriate for mood identification?? thank u

Member Avatar for zeroliken
0
298
Member Avatar for jackmaverick1

I've got a wall in my 2-D game. I've got everything except the not-allowing-you-into the wall part. I know I can use the intersect method on some Rectangles to know if they intersect, but I need to know where they intersect so that I can kick them out when they …

Member Avatar for NormR1
0
121
Member Avatar for xiiopao

good day guys.., just want to know more about method signatures.., can anyone here give me some samples or method signatures that could be helpful in hotel reservation program and flight reservation program.., i don't really have a code just need sample method signatures thanks guys =)

Member Avatar for NormR1
0
183
Member Avatar for Hypnos_16

I'm trying to write a program that allows a user controlled character to move around a maze. That problem i'm having is having it determine when it runs into a wall. I have a code done up to handle it. I'm just running into some errors i need help cleaning …

Member Avatar for NormR1
0
275
Member Avatar for bibiki

Hey there, I am trying to build an application that listens to my mouse. once I click on my panel, it reads the x, y coordinates of the point I clicked on. Second time I click the panel, it reads the x, y coordinates of this other point and draws …

Member Avatar for NormR1
0
154
Member Avatar for TIM_M_91

Hi guys well I am trying to create a UML diagram and what I want to know is am I doing it correctly so far? First of I have a main class called 'Class1' which has two buttons 1 for 'class 2' and the other for 'Class 3'. So have …

0
93
Member Avatar for ringo_tech

hi there, i have a simple code of voice chat found it in Java Developer Solutions [URL="http://javasolution.blogspot.com/2007/04/voice-chat-using-java.html"]http://javasolution.blogspot.com/2007/04/voice-chat-using-java.html[/URL] i tried to add simple GUi consists of a text where i can enter the server ip and a button click it to connect (calls CaptureAudio()) but when i try to use this …

Member Avatar for ringo_tech
0
104
Member Avatar for needjavahelp

I need help with a java program i have to make a program which allows users to draw free hand on a screen, i have no idea how to do this and i need to also understand the code that I use. I also need to put buttons to the …

Member Avatar for jbennet
0
132
Member Avatar for bloodbender

Hi guys, Is there a way to confirm your answers for simplifying boolean algebra OTHER THAN truth tables? AND = * OR = + p * q * r + p * r is simplified into just p * r, which of course is the correct answer, but how can …

Member Avatar for stultuske
0
171
Member Avatar for RDane

Why do I always get the error Student_Id do not have a default value? Is there something some with my code? Cant I do 2 PreparedStement and execute it together? [code] private void cmdaddMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cmdaddMouseClicked // TODO add your handling code here: //String sql = "INSERT INTO student (Student_ID, …

Member Avatar for javalover
0
474
Member Avatar for svatstika

Hello everyone! My idea is like this: Class MainWindow is a JFrame object, on which there is a JButton object (named button1). When I hit that button, the second window (this window is a JFrame object that is instance of class SecondWindow) will appear with a JTextField object (named textField) …

Member Avatar for NormR1
0
280
Member Avatar for dennysimon

hi all is there an installer for jar file ? (hopefully free ware) so client run setup.exe to install jar file ? thank you denny

Member Avatar for dennysimon
0
161
Member Avatar for Mushy-pea

Hi. After many years of having a hobbyist interest in programming but doing other things for a job, I've decided it might be time to attempt a career change to application development. The other areas I've worked in, such as teaching English to non - native speakers, aren't directly relevant …

Member Avatar for stultuske
0
313
Member Avatar for jouj

using the java swing how can i put a background image to my application in a way that the image will cover the frame . [B]ps [/B]: I'm new to the java so maybe my question is a silly one but i will appreciate any help .

Member Avatar for NormR1
1
170
Member Avatar for jayadan

hey guys i did a program for converting number into words and i almost got through but my folks want it even possible for decimal numbers too buti couldnt make that possible and can anyone help me in this and i also attach the codes i did and if something …

Member Avatar for jayadan
0
162
Member Avatar for SMVK

I am goign to do a project which needs voice input to be done. I looked through HTML 5 have tags for voice input. I like to use Sphinx 4 to do speech to text conversion? Where do i start? Any help please...

0
71
Member Avatar for maxinville

I'm a having a serious problem creating variable. I am creating an application that gets its datas from a database, and before you can access the application you must login first. My problem now is my Login class can do all the validations but I don't know how to set …

Member Avatar for maxinville
0
205
Member Avatar for DEAD TERMINATOR

I'm working on a music player and I want to make it so that if I'm playing a song and I click on another song in the list the first song stops before I hit play on the second one, without having to manually stop the first. So just the …

Member Avatar for DEAD TERMINATOR
0
2K
Member Avatar for life4menu

I have a text file that has two columns one with time in milliseconds and the other with (x,y) coordinates. I created a JFrame in a class that extends JPanel. It shows a model of constructed ladder that we use in our experiments. Now I want to print some small …

Member Avatar for dennysimon
0
215
Member Avatar for Yarra

[B]I have a bank class below. What is the best way to add amounts to any instance variable in any of the constructors to make it o when i add different amounts from 2 or more different classes it will update in a way that when i call the method …

Member Avatar for stultuske
0
99
Member Avatar for shean1488

Hi everybody. I'm trying to split a string such that every array element would have characters between open and close prentesis. mmm let me just show: myString = "(2*((3-2)+(5-3)))" So my array should have values like that: myArray[0] = 2*((3-2)+(5-3)); myArray[1] = (3-2)+(5-3); myArray[2] = (3-2); myArray[3] = (5-3); I …

Member Avatar for J_A_L
0
20K
Member Avatar for termin8tor

Hello all! I am working on a regular expression to be used in descrambling words in my scrabble solver. What I am attempting to do is write a regular expression that can be used to find all characters within a scrambled word, irrespective of order and match them to a …

0
93
Member Avatar for leiger

This code works perfectly fine when I run it as a class file (the font is located in the same directory) - however when I package it into a JAR file it can't find the font and the program crashes. The font is definitely being included in the JAR archive, …

Member Avatar for karlmeier
0
4K
Member Avatar for kd1385

Hello, I am a beginner. I want to setup my local account in debug mode. My code is on the remote server. After setting up my local account in debug mode i want to use that code from a remote server . How should i do that? I am using …

0
46
Member Avatar for gujinni

hi there. I am just new in java 3d why my program always says Exception in thread "main" java.lang.NullPointerException: Canvas3D: null GraphicsConfiguration at javax.media.j3d.Canvas3D.checkForValidGraphicsConfig(Canvas3D.java:963) at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1006) at pkgnew.New.<init>(New.java:39) at pkgnew.New.main(New.java:51) Java Result: 1 however, I already installed j3d and jre. I cannot run and compile my program. Nothing appears when …

Member Avatar for gujinni
0
120
Member Avatar for Krokcy

Im creating a banking system for a university assignment. Basically I have been struggling with encrypting user data. Its a first year assignment (in a 3 year bachelor) please bear this in mind when commenting x))) [CODE] //The constructor sets the global veriable key to a user defined value. //The …

Member Avatar for stultuske
0
154
Member Avatar for loserspearl

I've been working on a search engine that users manually add files to, build and inversed index, and can search some text and the program will saw which files have that text in them, you can choose and, or, or phrase search (just working on and & or search at …

0
68
Member Avatar for gujinni

hi there.! I have some problem about my calculator. I already made basic calculator but I want to developed it more instead of computing only 2 input I would like to compute this more than two. my calculator looks like windows calculator. tnx and more power. =)

Member Avatar for gujinni
-1
210
Member Avatar for crazymidget01

I am trying to read in a file that holds an unknown number of x and y coordinates that are to be later plotted into a 2-D array. Does the file have to be read through twice? Once to determine size of the array needed to plot all coordinates, then …

Member Avatar for NormR1
0
225
Member Avatar for falconpunch

So I was assigned the task of displaying all numbers divisible by two, five, and every third number in a range which I'm sure you can see how I did that. However I am having trouble as I was asked to use while loops, and I would also like to …

Member Avatar for Majestics
0
1K
Member Avatar for gujinni

hi there. my code ws just written in java application thus anyone know how to compile java3d animation compile through netbeans? I already installed j3d and no errors exist. please give me step by step when compiling and running program. I am knew in java 3d animation. tnx.

0
51
Member Avatar for TIM_M_91

Hi there I was wondering if their is anyone who can convert this statement from 'INSERT' to 'UPDATE' as I cannot seem to do is. Code can be seen below: [CODE]public static void COUNT2( ) { try { ResultSet res = stmt.executeQuery("INSERT INTO TABLE2 (VIDEOID,VIDEONAME,DIRECTOR,RATING,PLAYCOUNT) SELECT VIDEOID,VIDEONAME,DIRECTOR,RATING,PLAYCOUNT FROM TABLE1" ); …

Member Avatar for StephNicolaou
0
793
Member Avatar for dennysimon

hello all I create simple software say it's name K.jar ,I place it on desktop I double click it , it run nicely.I close it. I install Nokia Suite (it available on net) When I double click my K.jar ,Nokia Suite run ,my K.jar doesn't run If I uninstalled Nokia …

Member Avatar for dennysimon
0
648

The End.