35,618 Topics

Member Avatar for
Member Avatar for khnkng

hi i m mateen frm india i have a problem with my java compiler i want to know how to set the path of compiler and how to execute the program i have already installed the java software someone answer to my question and help me out

Member Avatar for peter_budo
0
135
Member Avatar for ceyesuma

Hello I am trying to use a MySQL database and connect to it using a Desktop App. I need to have it embedded and I am using netbeans and I am connected to the database I am also in the admin console for glassfish. I tried setting it up once …

Member Avatar for ceyesuma
0
92
Member Avatar for oggiemc

Hi people, Im trying to handle an exception in my servlet by res.sendRedirect to another page..but it is not redirecting to the page i want, instead its going to a HTTP Staus 500 error page detailing the full stack trace..can someone tell me what might be wrong here, ive attached …

0
51
Member Avatar for spaniel

Hi, I'm trying to do something pretty straightforward (I think) but it's not working for me for some reason. Basically trying to create an object with an ArrayList as a attribute but i keep getting numerous errors saying '<identifier> expected', '; expected'. My code is as follows: [CODE]import java.util.ArrayList; public …

Member Avatar for spaniel
0
117
Member Avatar for kingsboro2008

This is my first working java game. I am thrilled it works. What I want to know is.... what can I do to improve it? I would like to use a simple datebase to collect every possible combination of computer names. I would like to collect new information every time …

Member Avatar for kingsboro2008
0
202
Member Avatar for bettybarnes

i have this problem with regards to java data the problem accepts input number and then output the sum of the square from 1 to the n(1 to the no. input) thus, if the input is 4 the output should be 288 because: 1 raise to 1 + 2 raise …

Member Avatar for huyyaya
0
96
Member Avatar for jeanfrg

Hi I'm a java intermediate student, I have been studying java for two years. I just wanted to offer my help to those students that are currently struggling with java in general, or those who need help on an assignment. Lately I have been ahead of my class so I …

Member Avatar for jeanfrg
0
119
Member Avatar for Mandana_bgh

hi I use log4j framework for logging my program. i insert log4j.xml in my project an test it. everything was ok and logfile correctly was put in path. but when i made jar file and copy it to linux and run it it return error [CODE]log4j:ERROR Could not open [log4j.xml]. …

Member Avatar for peter_budo
0
159
Member Avatar for Sseeth

Ok heres the problem Im working on a final project for a java course and one thing is blocking my path. import java.util.*; public class Controller { public List<CrewMember> list = new ArrayList<CrewMember>(); public void addItem() { CrewMember cm = Academy.load( MenuUtil.getAString("Enter the role: "), MenuUtil.getAnInt("Enter the id number: ")); …

Member Avatar for Sseeth
0
4K
Member Avatar for Tabone3

Hi, I'm a bit new to java and I would like to make a program that save's and load the saved data that the user had inputted in my java program. For example I done a sort of a Bank System and when I close my program and restart it …

Member Avatar for Tabone3
0
185
Member Avatar for ku95

Hi basically I'm current doing a connect 4 program that consist of 3 separate programs Connect4Model, Connect 4 Column and Connect4View... I'm trying to compile and run my connect4View program but for some what reason I'm unable to do so. Below I have supplied the code for the 3 programs. …

Member Avatar for peter_budo
0
208
Member Avatar for funnychild

hi, i just need to pass the value from my html page to my servlet...it is not working...pasting the code below.. [CODE] <html> <head> </head> <body> <form name="frm" method="GET" action="http://localhost:8080/connect/ConnectServlet.java"> <input type="text" name="txtName"> <input type="submit" name="btSub"> </form> </body> </html> [/CODE] my Tomcat is running and i am able to run …

Member Avatar for peter_budo
0
55
Member Avatar for nickwl23

Hi guys.. I am having some problem with snake game project using JAVA Applet. I already have the sour code of a snake game from my friends, but I failed to make it functions probably under a JApplet. I need to do a similiar UI like click a start button. …

Member Avatar for nickwl23
0
198
Member Avatar for chihwei

Hi i just have a question, i was doing the pass midterm the question is asking that " Write a class Jacket, which has a boolean instance variable isReversible and a static int variable numJackets. There are no methods " correct Ans: public class Jacket { private boolean isReversible; private …

Member Avatar for peter_budo
0
199
Member Avatar for TimGerber

Hi guys, i need some help with a project, I need to print a table showing the numbers 1 - 10, thentheir factorials, i also need rthe sum of the numbers and the sum of the factorials:\ Number Factorials ======================= 1 1 2 2 3 6 4 24 5 120 …

Member Avatar for peter_budo
-1
187
Member Avatar for ceyesuma

I was trying to figure out how to access variable values out of a class. if class x.java hold all the values can class y.java use getClass(??); to get values without making a new class instance(which will erase everything?). then class z.java access it later to get the values likewise? …

Member Avatar for vchandra
0
89
Member Avatar for BuhRock

Ok, I know most of you will read this and think I am a liar, but I am really just trying to practice with multiple classes and methods. So I picked out a programming challenge from my book to see if I could get through it. I wrote the class …

Member Avatar for vchandra
0
125
Member Avatar for Bobon

Hey lads, Firstly apologies for the long message. I just thought it might be easier to explain my issues. I'm doing a website for myself and have been getting some amazing info from this forum. I've moved onto the database part to it. Now, for my website, user can sign …

Member Avatar for ds2r
0
107
Member Avatar for c++student01

I keep getting NoClassDefFoundError so I cannot check if the rest of my program works. It works on the school computers but it does not at my house. I set up the path and classpath variables how my teacher told me for derby but it still will not work, any …

Member Avatar for vchandra
0
115
Member Avatar for lwschjang

Basically, I am having trouble figuring out how to work my if statements. The only one that works is the final statement and that is due to it not having the [CODE]if("#".equals(e.getActionCommand()))[/CODE] statement. So, how should I go about allowing the user to select the quantity in the combobox and …

Member Avatar for lwschjang
0
152
Member Avatar for Fulladder

I am designing a cinema system I want to call a another class which has a arraylist method and then display the elements inside the arraylist. Please help I made two sample classes [CODE]Class cinema() . . . . public ArrayList<time> getTime() { for (Show show : getTime){ } return …

Member Avatar for quuba
0
3K
Member Avatar for cool_jatish

hi........ can anyone tell me the connection strings to connect JAVA JAPPLET to sql server 2005 database and also the execution of SQL statement in java thanks

Member Avatar for Ezzaral
0
126
Member Avatar for softdev

Hi Guys, I am trying to create a game of a two way traffic with a human trying to move between the cars to the other side without being hit by a car. I can detect the collisions, but the main problem is my cars don't move. what maybe the …

Member Avatar for quuba
0
106
Member Avatar for FancyShoes

Hi I am trying to return a boolean value into another method, but it's not working. [CODE] public static boolean ItemFound(boolean item, String desc1, String desc2, JTextArea txt){ if(item == true) txt.setText(desc1); if(item == false){ txt.setText(desc2); item = true; } return item; }[/CODE] and inside the other method I have …

Member Avatar for FancyShoes
0
153
Member Avatar for ceyesuma

Hello. Can someone explain what this InitialContext(): is looking for? [code] public JDBCSchoolofdbDAO() { try { Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup( ModelUtils.getResource("JavaCompEnv")); dataSource = (DataSource) envCtx.lookup( ModelUtils.getResource("DataSource")); } catch (NamingException x) { ModelUtils.log(x); throw new InternalError(x.getMessage()); } } [/code] [code] DAO=schoolAppModel.dao.JDBCSchoolofdbDAO #///////////////////////////////////////////////// # DAO=jsfdb.model.dao.JDBCSubscriberDAO #///////////////////////////////////////////////// …

Member Avatar for ceyesuma
0
2K
Member Avatar for owartz

My assignment is as follow: Create a class IntegerSet. The IntegerSet can hold integers in the range [1-100]. Define one or more instance variables to represent IntegerSet properties and store elements. Additionally, provide the following methods: a. One or more constructors. b. Method void add(int) inserts a new element to …

Member Avatar for jwenting
0
141
Member Avatar for neo_philiac

Hi, I got this piece of code from this forum and i was trying to modify it so that I can make it dynamic. I modified it a little bit to add multiple collapsible panels. But I need some help. 1. I need to add these panels dynamically. If I …

Member Avatar for moutanna
0
102
Member Avatar for synxmax

Dear Guys I want to start creating mobile based applications and i am newbie in this field , where should i start , how to create a simple application jar file which can run on mobile devices , for example a simple interface with buttons , sound handling , graphics …

Member Avatar for synxmax
0
154
Member Avatar for habsy

(Payroll) Write a program that reads the following information and prints payroll statements in show message dialog box. These are the inputs: Employees Full Name (e.g. Mohammed Al Zakwani) Numbers of Hours worked in a week (e.g. 40 hours) Hourly Pay Rate (e.g. 6.75) Federal Tax withholding rate (e.g. 20%) …

Member Avatar for jasimp
0
91
Member Avatar for tyson.crouch

G'day, My problem is not one that is overly complex but i have been unable to find a simple solution to my problem. My problem is that i have my given form with two submit buttons, for which I'm using images. Once i click on the images, how do i …

Member Avatar for ~s.o.s~
0
217

The End.