32,199 Topics

Member Avatar for
Member Avatar for amrita111

I have created a simple java file on desktop..When I am trying to execute it using cmd(with all variables set) then it is getting compiled but during the time of "java Filename" shows "main not found".This file is getting executed in eclipse and netbeans..What could be the reason for this???

Member Avatar for peter_budo
0
74
Member Avatar for Fedhell

**edit** I just realized that Im on a single core machine atm (stupid work machine), so theortically the server isint actually executing on the CPU 50% of the time (while the client is running), so packets would be lost right? Or is there something else im missing alltogether? Ill post …

Member Avatar for Fedhell
0
1K
Member Avatar for godzab

I am trying to write a selection sort, but I am getting a outofbounds error. How do I fix this? public class SelectionSort{ public static void selectSort(int[] arr){ int least = 0; for(int i = 1; i < arr.length - 1; i++){ for(int j = i + 1 ; i …

Member Avatar for jalpesh_007
0
89
Member Avatar for mumaga

Hello, I have built a GUI for the world of Zuul, the input can be taken by pressing buttons and enetering text commands. the output is both a change of images and text output using System.out.println(). When I press the directions buttons, the central image changes correctly. but the script …

Member Avatar for mumaga
0
191
Member Avatar for bilal_afzal

hi..! i'm using xampp and i want to take backup of my database using java code.How can i do that?

Member Avatar for peter_budo
0
83
Member Avatar for vegaseat

Jython is a version of Python that can use the extensive Java library. Jython uses Python syntax and avoids the rather ugly syntax (at least for Pythonions) of Java. Here we apply it to bring up an image from a file.

4
709
Member Avatar for mumaga

Hello,,, How to make the GUI frame visible? I have looked and this is what I came up with: Interface gameInterface = new Interface(object1Instance, object2Instance, this) gameInterface.getFrame().setVisible(true); is this the way it should be? I have refrained from using a singleton class because I wanted to pass instances of other …

Member Avatar for mumaga
0
119
Member Avatar for borix134

Im using a Mac, lwjgl, and Java 7 (Execution enviroment: 6). Hey Im trying to build my project and It gives me a message that says: A fatal error has been detected by the Java Runtime Environment, It works fine when I run it in eclipse, and the execution enviroment …

Member Avatar for Taywin
0
132
Member Avatar for dannyboy.rizaldo

Hello can i ask,.because i am a student of java programmer i want to asking how to fast learner of the program,.please help me i want to be a proffesional programmer,.thanks,..

Member Avatar for tux4life
0
136
Member Avatar for mumaga

Hello I am trying to write to a text log file for my world of zuul game. I have created a Class Logger to write into the file, here is the code: import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; public class Logger { private BufferedWriter out; public Logger() throws IOException { …

Member Avatar for Taywin
0
11K
Member Avatar for poojavb

Hello Friends, Can anyone tell me how to increment a String variable by 1 in database. Suppose the database table has value as SL1000 and we want the next value to be SL1001. What should be done for such type of requirement in java.

Member Avatar for mrsathishkumar
0
717
Member Avatar for 03hasnam

A person wishes to add a NEW Job to the database. A `Combobox` list the existing employers already in the database for the new Job to be added against. But if an employer is not present customers have the option click on a button to add an employer. Once added …

Member Avatar for DavidKroukamp
0
677
Member Avatar for nigelturk
Member Avatar for geedow

Dear all, This example is compleet ,but wont load the file. Can anyone help me with puzzle?hier is the code: Class ATMWindow import java.io.IOException; import javax.swing.JFrame; public class ATMWindow { /** * @param args the command line arguments */ public static void main(String[] args) { if (args.length == 0) { …

Member Avatar for Taywin
0
204
Member Avatar for Violet_82

HI peeps, I have a question about the following program: TempScale.java: public enum TempScale { CELSIUS, FAHRENHEIT, KELVIN, RANKINE, NEWTON, DELISLE, R�AUMUR, R�MER, LEIDEN }; Temperature.java public class Temperature { private double number; private TempScale scale; public Temperature() { number = 0.0; scale = TempScale.FAHRENHEIT; } public Temperature(double number) { …

Member Avatar for Violet_82
0
231
Member Avatar for sandeepbhatia

I have installed Eclipse Juno. I want to run jsp and servlet program using Eclipse IDE. But while adding new Server of Tomcat, i am unable to do so. In the add new Server option it does not show apache nor do other servers. Please help me how to sort …

Member Avatar for peter_budo
0
133
Member Avatar for CoilFyzx

*I know that this may seem like a re-occuring question, but I can't seem to find anyone who has asked this question in a very succinct manner. They always seem to beat around the bush, instead of clearly expressing themself.* **Here is the situation:** I have an application called S.M.A.R.T. …

Member Avatar for JamesCherrill
1
371
Member Avatar for borix134

Alright Im new to this forum so lets hope this goes well, I have decided to learn Java and I started with the lwjgl, I have the exact class and code as posted here: [lwjgl (display)](http://www.lwjgl.org/wiki/index.php?title=LWJGL_Basics_1_(The_Display)) When I run the code I get an error message that says: `JavaVM WARNING: …

Member Avatar for borix134
0
290
Member Avatar for Blink383

I am trying to create a GUI app were the user inputs an, item name, price, and discount rate. The button should calculate the two numbers and display the discount price. I am stuck on the action listener and making it preform the action/calculation correctly. I am a pretty novice …

Member Avatar for Blink383
0
466
Member Avatar for chira.laura.9

Hi everyone. I have to do a simple Sokoban game, but I am new in Java and I really don't know how to begin. If you can help me with some advices or tutorials I'll be very thankful.

Member Avatar for bguild
0
5K
Member Avatar for agca

Any tutorial step by step yo provide modular application development and dynamic deployment for Net Beans by using OSGi with Felix?

Member Avatar for agca
0
224
Member Avatar for Armanious

**BACKGROUND** There is a heavily obfuscated online applet with encyption (referred to as applet), there is a program (referred to as program) that reads and modifies the online applet for hacking purposes far more obfuscated than the applet, and then there is me. In a nutshell: applet's main class defines …

Member Avatar for Armanious
0
211
Member Avatar for Pobunjenik

This is based on John Conways Game of Life, a simple yet awesome code that simulates life. Rules are simple, if a cell has less then 1 or more then 4 living cells next to it, the cell dies. An empty cell with exactly 3 living cells next to it …

Member Avatar for Pobunjenik
0
341
Member Avatar for Toni Rahman
Member Avatar for stultuske
-3
143
Member Avatar for matan2t

Hello im braking my head with a problem, im using netbeans building a web application using java, jsp that handel a database with hebrew fields. String cityTable = "CREATE TABLE IF NOT EXISTS hebrew_test.table (" +"id int(11) NOT NULL AUTO_INCREMENT," +"en varchar(30) NOT NULL," +"he varchar(30) COLLATE utf8_bin NOT NULL," …

Member Avatar for matan2t
0
665
Member Avatar for jeffbeck8

okay I have it almost complete with one issue: When the report runs it is suppose to add up the property values for each agent and only display the total value of the properties. like:COMMERICAL FARM LAND RESIDENTIAL 101 600000.00 105 30000.00 106 200000.00 107 1040000.00 110 250000.00 but for …

Member Avatar for jeffbeck8
0
190
Member Avatar for harinath_2007

Hey all.. Happy new year .. I am insearch of converting the android application(apk) to java desktop application. I dont want to run it in some sort of emulators. I want to convert the apk file into java(J2se) desktop applciation and run it on my desktop. Can you suggest some …

Member Avatar for harinath_2007
0
120
Member Avatar for Carpetfizz

Hello, After a relatively small C++ background, I decided to learn some Java. I want to be able to pass two variables from my main class, evaluate them in another class, and return that answer to the main class. I have all the code done for it pretty much, but …

Member Avatar for Carpetfizz
0
170
Member Avatar for RaJsHaH.23

[import java.util.Scanner; import java.util.Random; public class HangmanMy { public static void main (String[] args){ System.out.println("Welcome to the game Hangman :)/>"); Scanner input = new Scanner(System.in); boolean done = false; String guess; String guesses = ""; char letter; int wrongGuess = 0; StringBuffer dashes; System.out.println("Choose a category -> places / games …

Member Avatar for corby
0
241
Member Avatar for -acir-

Do you have a sample code suggestion to predict illness to a blood type? Blood type is an input from the user and when the user inputs the blood type it would give you all possible illness for that blood type. Is that possible? Am using netbeans and not sure …

Member Avatar for -acir-
0
143

The End.