32,204 Topics

Member Avatar for
Member Avatar for Mareshal

I have a program with multiple JAR files. I need to edit only 1 class in only 1 jar file. I've decompiled them to *.java files, edited, but I can't recompile them. I tried javac name.class but I get a ton of errors. any help?

Member Avatar for Mareshal
-1
209
Member Avatar for Maverick

I am finishing up writing an extensive C/C++ program and am in dire need of completing these 4 short JAVA programs. Any help would be appreciated GREATLY! (I missed a few days of lecture and am extremely behind in this class.. :sad: EDIT: actually just helping me with one or …

Member Avatar for javaAddict
0
642
Member Avatar for Holmez85

Hi, im pretty new to java. Im attending a programming class at a college in norway. I have only been programing for 3 months. My question is, how can i for example print all items or a selected item from the games archive(so i get it in a new window …

0
81
Member Avatar for bigginger

I'm new in programming and need to validate this class email. Anybody can help? public class Email { private String email; public Email() { email = ""; } public Email(String emailAddress) { this.email = emailAddress; } public String getEmail() { return email; } public void setEmail(String email) { this.email = …

Member Avatar for bigginger
0
102
Member Avatar for ashokp27

We are currently using MSJVM for JVM, and there are some class files for tuxedo application.... Now as MS as has stop MSJVM support we want to move form MSJVM to SUN JVM. Please some one guide us, how to use existing class in sun java

0
40
Member Avatar for mohs_cool

hi i am sadiq doing my final yaer in the disciple of information technology ... As i am interested in doing my final year project in java ....... i need the suggestion to select a interesting project which should impress the company.. i also need the project description...........

Member Avatar for peter_budo
0
390
Member Avatar for Sandar Khin

I don't know how to write marquee with links in java application.If someone knows, pls help me.

Member Avatar for Sandar Khin
0
112
Member Avatar for rajuchacha007

Hi all, I am using maven for building deployable artifacts. Whenever I run mvn deploy command, error occurs. I am also using nexus for the actual artifact deployment. Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated Both pom.xml and settings.xml are modified accordingly. No issue about it. But still I am getting …

Member Avatar for peter_budo
0
98
Member Avatar for ShuiYinDeng

oldAccount text file is Nicholas, Diana, Eric,Andy, Alex , AMy CurrentAccount text file is Andy Alex Amy Kelvin cherry Betty import java.util.*; import java.io.*; public class Example2 { public static void main(String[]args) throws IOException { System.out.print (" Old Account is: "); System.out.println(); TreeSet<String> oldAcc = new TreeSet<String>(); Scanner oldacc = …

Member Avatar for ShuiYinDeng
0
147
Member Avatar for M.Jama

Hi there, I am new in java and some basic help would be appreciated. e.g 1-What's the out put of; double number = (1/3)*3; System.out.println("(1/3)*3 is equal to " + number); What's missing? 2- Convert each of the following mathematical formula to java expression; 3x and 3x+y Thank you in …

Member Avatar for M.Jama
0
85
Member Avatar for jrosh

I used below code to extract year from a date object. [CODE] java.util.Date ye = new java.util.Date(); int y = ye.getYear(); System.out.println(y); [/CODE] But it prints ,109 How I get the year as 2009??

Member Avatar for jrosh
0
225
Member Avatar for isuruj

I am using emma-2.1.jar for getting code coverage for my java web application. For generating the coverage.ec file, every time I need to shutdown the tomcat server. But I heard that version 2.1 gives ctl tool for getting coverage.ec file without shutting down the server. But I don't know how …

0
58
Member Avatar for vtsmokey88

So i've converted a float array and int array into binary number. The problem is when I print out the binary values, java cuts some of the digits off depending on how much the value is. I've found this to be a problem with the int value because they don't …

Member Avatar for masijade
0
93
Member Avatar for swinefish

Hey all I'm writing a rasterizer at the moment, and one of the basic transformations you can perform is rotation. This demands the use of trig functions. However, when rotating a cube, my cube slowly shrinks. Is this s result of loss of accuracy in Math.sin() and Math.cos()? Or is …

Member Avatar for mrnutty
0
126
Member Avatar for DazednAngry

I am working on an assignment and I need a bit of help. I am using a double linked list to find roots of polynomials, the list has a trailer node only. I can't seem to get it to create a list. I figure I am just missing something small …

Member Avatar for BestJewSinceJC
0
127
Member Avatar for Logi.

Evening Folks, Having a bit of a problem with somthing i am trying to code, wondering if anyone here can help.... The basic idea is that i am trying to build a Priority Queue of binary tree nodes so that they are stored in ascending order by a number stored …

Member Avatar for quuba
0
883
Member Avatar for Karkalash

Hi: I have to write a program generating the fibonacci sequence based on the length desired by the user. I'm using arrays and methods too. So I have to do one method to generate the sequence and another to print the other method. So far so good, except the last …

Member Avatar for dotaa
0
2K
Member Avatar for runee1000

Hi, I just started learning java, so my skills are quite limited and I have yet to learn many many concepts. Right now, I am trying to create a hangman game(which as you can see is still incomplete). The problem I get is, the word being "mystery" when I guess …

Member Avatar for BestJewSinceJC
0
132
Member Avatar for anki.gulsvart

Hi. I´m trying to change a file-extension, but it doesn´t seem to work. When i use System.out.print() it says the new name, but the file in my computer doesn´t change. My code: [CODE]public String changefileextension(String filename) { int lastDot = filename.lastIndexOf("."); if (lastDot != -1) { filename= filename.substring(0, lastDot) + …

Member Avatar for JamesCherrill
0
77
Member Avatar for slatk3y

I am trying to do RMI Server-Client communication, but I get these exceptions when I try to run client: [CODE] java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1371 connect,resolve) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) at java.security.AccessController.checkPermission(AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034) at java.net.Socket.connect(Socket.java:519) at java.net.Socket.connect(Socket.java:475) at java.net.Socket.<init>(Socket.java:372) at java.net.Socket.<init>(Socket.java:186) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198) …

Member Avatar for slatk3y
0
115
Member Avatar for jman8877

this method checks if the array needs more slots , if it does it adds 5 more slots to the original array while keeping the same content and order of the content in the array how could u do this in a method that returns true and recieves add number …

Member Avatar for Cronless
0
268
Member Avatar for Sandar Khin

I want to make marquee link in jpanel.I meet a problem at paintComponent(Graphic g){ g.drawString(text,x,y); } I want to replace JTextField at the "text".Who can I help me?whoever,thank in advance.

0
57
Member Avatar for shobhit123

Hi can anybody tell me any link from where i can download a small jsp servelt project and deploy on my machine and get to know the code and understand it... i have read the basics of jsp servelts and need a sample project to understand a small project to …

Member Avatar for ithelp
0
181
Member Avatar for system analysis

please help me to Design and implement an application that reads an integer value representing a year from the user. The purpose of the program is to determine if the year is a leap year (and therefore has 29 days in February) in the Gregorian calender. A year is a …

Member Avatar for javaAddict
0
133
Member Avatar for emmybuuz
Member Avatar for peter_budo
-2
55
Member Avatar for jaimca

HI Please tell me how to create a new pdf file by merging two different pdf files dynamically in java ... please help me out thanks in advance..

Member Avatar for peter_budo
0
53
Member Avatar for jrosh

[CODE] tdate= new JTextField(); tdate.setBounds(200,25,134,20); java.util.Date date = new java.util.Date(); DateFormat df = DateFormat.getDateInstance(); String s = df.format(date); a = s.split(" "); a2 = a[1].split(","); //a[0]=oct , a[1]=27, , a[2]=2009 , a2[0]=27 , int mon=0; if(a[0].equalsIgnoreCase("jan")){ mon=01; }else if(a[0].equalsIgnoreCase("feb")){ mon=02; }else if(a[0].equalsIgnoreCase("mar")){ mon=03; }else if(a[0].equalsIgnoreCase("apr")){ mon=04; }else if(a[0].equalsIgnoreCase("may")){ mon=05; }else …

Member Avatar for masijade
0
89
Member Avatar for jman8877

it checks if the array needs more slots , if it does it adds 5 more slots to the original array while keeping the same content and order of the array how could u do this in a method that returns true and recieves add number to put in the …

Member Avatar for masijade
-1
93
Member Avatar for jman8877

it checks if the array needs more slots , if it does it adds 5 more slots to the original array while keeping the same content and order of the array how could u do this in a method that returns true and recieves add number to put in the …

Member Avatar for masijade
0
281
Member Avatar for theStruggler

I have to write a program to censor a string. Whenever I run the program, it works fine the first time, then stops progressing the second time after entering the bad word. I don't get what the problem is. PLease help: java.util.Scanner; public class stringCensorRunner { /** * @param args …

Member Avatar for theStruggler
0
115

The End.