32,199 Topics

Member Avatar for
Member Avatar for Chaster

Hi guys, sorry in advance for the following question: So, I've downloaded the adequate SQL Server 2000 driver, from the Microsoft's website. I've installed it to C:\JDBC\. I've set the classpath variable using the command promt by typing: set CLASSPATH=.;c:\jdbc\lib\msbase.jar;c:\jdbc\lib\msutil.jar;c:\jdb c\lib\mssqlserver.jar; The problem is that the following error message appears, …

Member Avatar for Ezzaral
0
184
Member Avatar for atrix415

hi, I seem to gotten my code run. But what I want is to display everything into a dialog box all at once. So when I type 3 it would display all the factorials starting from three...to 15 and display them according to number / Factorials. 5 to 15 all …

Member Avatar for masijade
0
140
Member Avatar for denniskhor

Write a program that prompts the user to input a number of positive integer values which is terminated by an appropriate sentinel value (you can choose -1 as the sentinel value) and then prints out the largest value, the smallest value, the average value and the number of prime numbers …

Member Avatar for Chaster
0
113
Member Avatar for shantuli

hi, can anyone pls find out the problem of my code. Code: public class binarysearch { public static void main ( String[] args ) { int[] array = {2,2,10,20,55,100}; int target = 2; int left = 0; int right = array.length - 1; int mid = -1; while ( left …

Member Avatar for ChaseVoid
0
190
Member Avatar for jaden403

Is there a way to define a PrintWriter object in main() and use it in other methods (within the same class) without having to pass the object as a parameter to all of the other methods? For example: [code] public static void main (String args []) throws FileNotFoundException { PrintWriter …

Member Avatar for peter_budo
0
86
Member Avatar for atrix415

I am trying to print this to a dialog box. The code prints to console and prints, 1,2,3,4....12 to the dialog box. Can someone give me some advice on printing to a dialog box the verses to the dialog? [INLINECODE] import javax.swing.*; // program uses class JOptionPane public class TwelveDays …

Member Avatar for masijade
0
437
Member Avatar for wegdan

i generate a jar file for my project but when i try to run it by d-clicking it i found this massage java Virtual Machine Launcher could not find the main class.program will exit

Member Avatar for peter_budo
0
111
Member Avatar for satish.paluvai

1)I need to compare two directories .if the files which r not same in the two directories i want to list them in a new text file can anybody help me solving this question 2)how to write in a file in a String format using java? satish.paluvai

Member Avatar for masijade
0
100
Member Avatar for craig5464

Please help me how can i implement Multilevel feedback queue scheduling. i tried something and got scrap liek this [code = java] package osp.Threads; import java.util.Vector; import java.util.Enumeration; import osp.Utilities.*; import osp.IFLModules.*; import osp.Tasks.*; import osp.EventEngine.*; import osp.Hardware.*; import osp.Devices.*; import osp.Memory.*; import osp.Resources.*; /** This class is responsible for …

Member Avatar for sam_tn
0
545
Member Avatar for sakura_fujin

hi guys how do you export your database to html format? my project goes like this: we built a simple music manager that adds, edits, deletes, searches and sorts records (that's track listings) excluding the multimedia part (i.e. play a track, etc.. our prof didn't require us to do that, …

Member Avatar for masijade
0
92
Member Avatar for mrityunjay22
Member Avatar for rwm

Hiya! I've got a problem writing GUI's. Basically the design portion in code. What I've done is I've broken the GUI components into seperate classes, for example: [code] //custom menu bar public class MyMenuBar extends JMenuBar { ... } //custom generic menu. all //look-and-feel is set //here i.e. fonts etc …

Member Avatar for rwm
0
97
Member Avatar for rajveerg22

Thaks in advance for reading my thread.... my boss given meonly five days time to implement 128-bit encryption code... and we prepared some code in java... and thats not giving the exact ouput of encrypted and decrypted text .... Please Provide any 128-bit Encryption code snippets so that i can …

0
54
Member Avatar for kanetaz

I'm trying to create a Cash register that accepts euros. I don't even know where to begin. So far I have: public class Coin { public Coin() { name = " "; value = 0; } public Coin(String n, int v) { name = n; value = v; } public …

Member Avatar for DrCruel
0
99
Member Avatar for leroi green

hey all, still very new, i'm trying to create an array and then get an average of the numbers. this is for a class of mine and a friend says i'm close but the book doesnt really give any further help. can you tell me where i'm going wrong? mucho …

Member Avatar for leroi green
0
124
Member Avatar for Amurka

My assignment is: "Write a program that accepts the letter grades for a student, calculates the student's gpa, and prints it out, along with one of the following five messages: Eligible Ineligible, taking less than 4 classes Ineligible, gpa below 2.0 Ineligible, gpa above 2.0 but has F grade (note: …

Member Avatar for Amurka
0
1K
Member Avatar for PL.P27

Hi Everybody, I was wondering if someone could help me figure out what is wrong with this part of my program. My program is a fraction calculator, and I'm wondering if the code I have is ok and if it will display correctly. Thanks much!! Also should I add a …

Member Avatar for PL.P27
0
175
Member Avatar for flavour_of_bru

Hi, I am converting a given html document into a tree structure and displaying it using JTree and DefaultMutable classes. By using the html parser and the JTree functionality, I can display the html doc as tree structure, but now I would like to get the subtrees only of that …

Member Avatar for Ezzaral
0
211
Member Avatar for java_starter

I getting the following errors.. please help .. below is error i get and below that is the file that the error is refferring to [code] E:\JAVA\Java Files\lab employee\FullTimeEmployee.java:22: cannot find symbol symbol : class DateComponent location: class FullTimeEmployee DateComponent dc = new DateComponent(date); ^ E:\JAVA\Java Files\lab employee\FullTimeEmployee.java:22: cannot find …

Member Avatar for Ezzaral
0
97
Member Avatar for JavaNewbie07

Hi folks, I am trying to perform and insertion sort on a double ended list that currently contains a bunch of strings. Can someone please give me some pointers on how to approach this problem?

Member Avatar for Ezzaral
0
61
Member Avatar for alinurl

Im trying to compile this code, but I keep getting a compile error: [B]'(' or '[' Expected[/B] What am I doing wrong? Thanks in advance [CODE] public class Postfix { public static void main(String[] args) { Stack<Integer> stack = new Stack<Integer>(); ------> HERE while (!StdIn.isEmpty()) { String s = StdIn.readString(); …

Member Avatar for alinurl
0
54
Member Avatar for java.cream

Hi all, When RUN the Project that erros apears : [COLOR="red"]"Application.java": cannot find symbol; symbol : class FirstWorld, location: class Application at line 3, column 7[/COLOR] [COLOR="red"]"Application.java": cannot find symbol; symbol : class FirstWorld, location: class Application at line 3, column 30[/COLOR] Please help me .. Thanks..:)

Member Avatar for java.cream
0
110
Member Avatar for jackskell26

Hello Everybody. I am trying to write a program that asks the user to enter the amount of dice they want to use, and how many rolls they would like to make. Eventually I will need to store the output in strings, so I can print out how many times …

Member Avatar for jackskell26
0
152
Member Avatar for rajveerg22

Thaks in advance for reading my thread.... Just now we have decided that have to implement 128-bit encryption code... and we prepared some code in java... and thats not giving the exact ouput of encrypted and decrypted text .... Please Provide any 128-bit Encryption code snippets so that i can …

0
53
Member Avatar for mrityunjay22

hi, i want to generate custom error pages for my jsp pages insted of default error pages can anybody explain

Member Avatar for masijade
0
62
Member Avatar for bdaya

i have a small problem in opening the record , in the sever there is a folder which contains n number of word documents, i made them to list all the files in the order and if i click on the file it should open in the MS Word and …

1
53
Member Avatar for balagangadharm

I have a variable of type float.can anyone tell me how to put this in session as an attribute so that i can use it in other pages.plz reply

Member Avatar for masijade
0
47
Member Avatar for thunderbbolt

I am learning java and was looking at this program I don't understand what is wrong with it, I am getting an error that says something about the compareTo cannot be found and variable cannot be found. [code] class Card implements Comparable { Card(int r, int s) { rank = …

Member Avatar for DrCruel
0
96
Member Avatar for mrityunjay22

jsp code <%@ page import="temperory.Mrityunjay.*"%> <%@ page import="com.MindShaper.ClassTeacher.Utility.BaseServlet.VSHttpServlet" %> <%@ page import="java.util.*"%> <%@ page import="com.MindShaper.ClassTeacher.Utility.Helper.*" %> <%@ page import="ClassTeacher.SessionObject"%> <%@ page import="ClassTeacher1.MemoryTables"%> <HTML> <HEAD> <TITLE>Student Information</TITLE> <!-- for confirm () --> <script language="JavaScript1.2" src="functions.js" type="text/javascript"> </script> <link rel="stylesheet" href="lib.css" type="text/css"> <style type="text/css"> <!-- td { padding-left: 15px; } --> </style> …

Member Avatar for mrityunjay22
0
133
Member Avatar for java_starter

Here the error i get from the file below [code] F:\JAVA\Java Files\lab employee\FulltimeEmployee.java:1: cannot find symbol symbol : class Calender location: package java.util import java.util.Calender; ^ F:\JAVA\Java Files\lab employee\FulltimeEmployee.java:22: cannot find symbol symbol : class DateComponent location: class FulltimeEmployee DateComponent dc = new DateComponent(date); ^ F:\JAVA\Java Files\lab employee\FulltimeEmployee.java:22: cannot find …

Member Avatar for Amurka
0
214

The End.