32,204 Topics

Member Avatar for
Member Avatar for parulparashar

what are requirements for sql server 2005 installation? how to connect it with netbeans> can we make no. of instances?how and why?

Member Avatar for stultuske
0
104
Member Avatar for kolibrizas

I am doing a cross-site ajax to java data transaction(Not sure if I named that correctly, so please forgive me about that). Part of code in Java file: [CODE]BufferedReader input = new BufferedReader(new InputStreamReader(connectionsocket. getInputStream())); DataOutputStream output = new DataOutputStream(connectionsocket.getOutputStream()); ... output.writeChars("some random text"); output.close();[/CODE] Also I have index.php file …

Member Avatar for kolibrizas
0
224
Member Avatar for coroll

Hi all, Im new to java. I get this error. Non-static variable this cannot be referenced from a static context myClass c=new myClass() ^ this is my code [CODE] public class MyOwnBm{ private Hashtable myHash=new Hashtable(); public static void main(String[] args) { myClass c=new myClass(); c.match(); } public class myClass{....} …

Member Avatar for JamesCherrill
0
487
Member Avatar for codex89

Why i am getting this error ERROR at line 5: PL/SQL: SQL Statement ignored Here is my code CREATE OR REPLACE PROCEDURE SELECT_VEHICLE_VEHICLE_TYPE (vehicletype IN VARCHAR2, vname OUT VARCHAR2, vtype OUT VARCHAR2, efirstname OUT VARCHAR2) AS BEGIN SELECT v.V_NAME INTO vname,v.V_TYPE INTO vtype,e.E_FIRST_NAME INTO efirstname FROM VEHICLE_TABLE v INNER JOIN …

Member Avatar for thines01
0
138
Member Avatar for mags11

I'm getting error messages when I run my program. The problem is as follows: Design a Payroll class that has fields for an employee's name, ID number, hourly pay rate, and number of hours worked. Write the appropriate accessor and mutator methods and a constructor that accepts the employee's name …

Member Avatar for NormR1
0
3K
Member Avatar for kalcio

hi, I have a problem with my JTable it displays the same line at all lignes,my code consists to use a command that will be run in background (using the command exec.getRuntime ()), and this will return multiple rows for that, I used a variable "i" to initialize lines and …

Member Avatar for mKorbel
0
161
Member Avatar for Na'Vi

Hi, I'm having some problems with my program and I'm not sure how to fix them. I have a main method that starts out with a frame. [CODE]public class Cryptography { public static void main(String[] args) { CryptoMainMenu mainMenu = new CryptoMainMenu(); JFrame frame = new JFrame("Cryptography"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().add(mainMenu); frame.pack(); …

Member Avatar for Na'Vi
0
121
Member Avatar for shean1488

Hi everybody, Tryed to make this program: Simple browser: you type the URL at the top and then get a new window with this web page. But my output is just JFrame(Even color did not get changed) help me please to find the problem. [CODE]import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; …

Member Avatar for 117
0
199
Member Avatar for 117

Hello, I'm trying to make a JPanel with JFrame capabilities, such as resizing, and moving, Everything seems to work fine, altough there are minor flickering inside the JPanel, I have numeral repaints and I have a method called update(), which uses absolute position to arrange Containers and Components. Whenever the …

Member Avatar for 117
0
4K
Member Avatar for coroll

Hi all, Im trying to remove from a HashTable by providing key and to get by proving key. And i tried as follows for removing, Caharcter ch=p.charAt(i); but gives these errors. myOwnBm.java:60: cannot find symbol symbol : method Remove(char) location: class java.util.Hashtable myHash.Remove(p.charAt(i)); ^ myOwnBm.java:77: inconvertible types found : java.lang.Object …

Member Avatar for JamesCherrill
0
153
Member Avatar for needjavahelp

Hi i need to add crosshairs to my code, like draw 2 lines across the screen on a JPanel, i also need to be able to turn them on and off with a checkbox which is on a JPanel. the other panel needs to be drawable on like a paint …

Member Avatar for zeroliken
0
469
Member Avatar for gagirl1105

Hi! I'm working on a school project and ran into a problem. We're creating an ArrayList of basketball games where each game is set up as: [CODE] public Game (String homeTeam, int htScore, String opponent, int oppScore) { this.homeTeam = homeTeam; this.htScore = htScore; this.opponent = opponent; this.oppScore = oppScore; …

Member Avatar for gagirl1105
0
110
Member Avatar for apanimesh061

If we are given a data set which has student marks, GPA and Attendance, how can KNN be used to find the best 4 students? I admit, that this is a homework question, but I am not asking for the code ... I will do that myself.... I only need …

0
62
Member Avatar for bhallarahul

hello everyone i have wrote a code but it shows [B]"org.apache.tomcat.dbcp.dbcp.SQLNestedException:"[/B] error org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) at listener.MyContextListener.contextInitialized(Unknown Source) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at …

Member Avatar for bhallarahul
0
361
Member Avatar for bhallarahul

hello frnd i am wriing program on in which i try to connect mysql with servlet but it gives error here is my code [CODE] [B]Test.java[/B] package my; import java.io.IOException; import java.sql.Connection; import java.sql.SQLException; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.sql.DataSource; …

Member Avatar for bhallarahul
0
1K
Member Avatar for andreanah1

my problem in here is that i want to input chairs for the barber shop, there should be input chairs button and i will input how many chairs i want, and if for example i will input 4 and press ok, the barber chairs will become 4 also , and …

Member Avatar for andreanah1
0
238
Member Avatar for rjnarwal

Hello there I am using RAD and there is some problem with my websphere its not publishing anything here is the error ........................................................................................... [ATTACH]24189[/ATTACH] ........................................................................................... Tagged the screenshot of y problem please reply......

0
43
Member Avatar for CodeMonkeyJunk

I have a school project and what is needed is to Write a program that prompts the instructor to enter the 10 grades of midterm 1 and store these numbers in an array. Next prompt for the 10 grades of midterm 2 and store these numbers in a different array. …

Member Avatar for CodeMonkeyJunk
0
183
Member Avatar for FALL3N

hey, so I am just starting java3D, and I am running into some pretty basic problems... I started a tutorial online (from [url]www.java3d.org[/url]) and the first sample program is: [CODE]import com.sun.j3d.utils.universe.SimpleUniverse; import com.sun.j3d.utils.geometry.ColorCube; import javax.media.j3d.BranchGroup; public class Hello3d { public Hello3d() { SimpleUniverse universe = new SimpleUniverse(); BranchGroup group = …

Member Avatar for FALL3N
0
974
Member Avatar for Valiantangel

hi below code is an example.I hav couple of questions 1)The highlighted bold red code(myParrot[0]...)can it be simplifyed? 2)Can i use random to generate a given set of numbers?How? [CODE]public class Bird{ public static void main(String[] args) { int[] myParrot = new int[3]; [B][COLOR="Red"]myParrot[0]=1; myParrot[1]=2; myParrot[2]=3;[/COLOR][/B] for (int feature=0; i<myParrot.length; …

Member Avatar for NormR1
0
256
Member Avatar for stressed studen

I was told to use a while loop and call the nextNumber method until the input matches the corresponding fibonacci number, i.e. an input of 4 would give fib(4)=3. I'm getting fib(4)=1. Here is my code: [CODE] /** Class used to generate a Fibonacci number with a given input */ …

Member Avatar for stultuske
0
154
Member Avatar for dhija22
Member Avatar for shean1488

Hi everybody. I'm trying to display web page that located in my computer or just (google web page). But everytime I'mgetting nullpointer exception. Please help me to figure out the problem. here is the absolute path that I'm using: [CODE]serg@serg-PORTEGE-Z835:~$ find $PWD -type f -name test1.html /home/serg/Projects/java/GUI/src/its/TestData/test1.html [/CODE] But the …

Member Avatar for NormR1
0
156
Member Avatar for Sgt. Pepper

Hello, I've got this problem with an intro to Java class. To lay some background down, the professor teaches the 'theory' behind java, and nothing of actual code, so my knowledge is very limited here. The reason I'm here is I can't discern for the life of me how to …

Member Avatar for NormR1
0
10K
Member Avatar for jade_91

So basically I have to import a file of names and then be able to sort them alphabetically I've managed to import the file using the followig code [CODE] import java.io.*; public class Name{ public static void main(String[] args)throws IOException{ String contents; File f = new File("names.txt"); FileReader fr = …

Member Avatar for NormR1
0
505
Member Avatar for gerchi152

I'm getting this error variable might not have been initialized on ch2 and ch3: [CODE]import javax.swing.JOptionPane; public class calculatorJava { public static void main(String[] args) { String ch, ch2, ch3, add1, add2, sub1, sub2, mul1, mul2, div1, div2, choice1, exp; int chans, chans2, chans3, addo1, addo2, subO1, subO2, mulo1, mulo2, …

Member Avatar for Ezzaral
0
314
Member Avatar for Traps

I'm making a website and of course want to incorporate memberships and logins, etc and while I understand the theoretical application of salting and hashing a user-inputted password to save the encrypted pass in my database, I'm not sure on the approach... What I would do is get the hashCode …

Member Avatar for Traps
0
103
Member Avatar for Grevenz101

As i said in the title",. i dont know what was the missing",. (i will just attach the jar file) please help"., by the way", it is a game named sokoban.

0
47
Member Avatar for ringo_tech

hi there, i have this server code that send the received message from one client to all the other clients, including the one how send the message [CODE]public class Chat extends Thread{ static LinkedList<PrintStream> sll; Socket cs; PrintStream ps; public Chat(Socket cs){ this.cs=cs; try{ ps=new PrintStream(cs.getOutputStream()); sll.add(ps); this.start(); } catch …

Member Avatar for NormR1
0
161
Member Avatar for Syrne

Hello! I was given the task to finish writing the definitions of the Treeset class methods. I'm currently at the [B]headSet[/B] and [B]tailSet[/B] functions and quite stumped. Here's what they look like currently, with no logic: [CODE]@Override public SortedSet<E> headSet(E before){ SortedSet<E> set = new SearchTreeSet<E>(); headSet(root, before, set); return …

Member Avatar for Syrne
0
381

The End.