Member Avatar

Hi, i recently begun learning java and encryption. I found some code from a website that is supposed to decrypt lastlogin files found in minecraft. When i try to compile it gives me these errors: C:\Users\CROCCY\Documents\NetBeansProjects\Lastlogin decryptor\src\lastlogin\decryptor\LastloginDecryptor.java:54: error: invalid method declaration; return type required public MineCraftLoginReader() { C:\Users\CROCCY\Documents\NetBeansProjects\Lastlogin decryptor\src\lastlogin\decryptor\LastloginDecryptor.java:87: error: illegal start of type return "name: "+dis.readUTF()+NEWLINE+"password: "+dis.readUTF(); C:\Users\CROCCY\Documents\NetBeansProjects\Lastlogin decryptor\src\lastlogin\decryptor\LastloginDecryptor.java:87: error: ';' expected return "name: "+dis.readUTF()+NEWLINE+"password: "+dis.readUTF(); C:\Users\CROCCY\Documents\NetBeansProjects\Lastlogin decryptor\src\lastlogin\decryptor\LastloginDecryptor.java:87: error: illegal start of type return "name: "+dis.readUTF()+NEWLINE+"password: "+dis.readUTF(); C:\Users\CROCCY\Documents\NetBeansProjects\Lastlogin decryptor\src\lastlogin\decryptor\LastloginDecryptor.java:87: error: ';' expected return "name: "+dis.readUTF()+NEWLINE+"password: "+dis.readUTF(); C:\Users\CROCCY\Documents\NetBeansProjects\Lastlogin decryptor\src\lastlogin\decryptor\LastloginDecryptor.java:87: error: invalid method declaration; return type required return "name: "+dis.readUTF()+NEWLINE+"password: "+dis.readUTF(); …

Member Avatar
+0 forum 1
Member Avatar

Aoa... i m new to java.. please help me to correct this program given blew. it shows error of illegal start of esxpression.. how could b it seems as correct program please help me.. thanks alot **error: illegal start of expression JOptionPane.showMeassageDialog(null, "ID: " + ID + "name: " + name + "category: " + category + "price: " + price + "quantity: " + quantity + "description: " + d escription+); ** import javax.swing.*; class product { string ID; string name; srting category; string price; string quantity; string description; // Perameterized constructor public product(string I, string n, string c, …

Member Avatar
+0 forum 5
Member Avatar

My file: http://www.2shared.com/file/Y4I4l2kI/MysticWorld.html Convert to .class file please The errors: C:\xampp\htdocs\EMULADOR\Server\JAVAEX~1\org\MYSTIC~1\MysticWorld.java:221: error: illegal start of expression static class _cls5 ^ C:\xampp\htdocs\EMULADOR\Server\JAVAEX~1\org\MYSTIC~1\MysticWorld.java:277: error: malformed floating point literal switch(_cls5..SwitchMap.org.mysticworlds.WorldObject[type.ordinal()]) ^ C:\xampp\htdocs\EMULADOR\Server\JAVAEX~1\org\MYSTIC~1\MysticWorld.java:277: error: case, default, or '}' expected switch(_cls5..SwitchMap.org.mysticworlds.WorldObject[type.ordinal()]) ^ C:\xampp\htdocs\EMULADOR\Server\JAVAEX~1\org\MYSTIC~1\MysticWorld.java:277: error: case, default, or '}' expected switch(_cls5..SwitchMap.org.mysticworlds.WorldObject[type.ordinal()]) ^ C:\xampp\htdocs\EMULADOR\Server\JAVAEX~1\org\MYSTIC~1\MysticWorld.java:277: error: case, default, or '}' expected switch(_cls5..SwitchMap.org.mysticworlds.WorldObject[type.ordinal()]) ^ C:\xampp\htdocs\EMULADOR\Server\JAVAEX~1\org\MYSTIC~1\MysticWorld.java:277: error: case, default, or '}' expected switch(_cls5..SwitchMap.org.mysticworlds.WorldObject[type.ordinal()]) ^ C:\xampp\htdocs\EMULADOR\Server\JAVAEX~1\org\MYSTIC~1\MysticWorld.java:277: error: case, default, or '}' expected switch(_cls5..SwitchMap.org.mysticworlds.WorldObject[type.ordinal()]) ^ C:\xampp\htdocs\EMULADOR\Server\JAVAEX~1\org\MYSTIC~1\MysticWorld.java:277: error: case, default, or '}' expected switch(_cls5..SwitchMap.org.mysticworlds.WorldObject[type.ordinal()]) ^ C:\xampp\htdocs\EMULADOR\Server\JAVAEX~1\org\MYSTIC~1\MysticWorld.java:277: error: case, default, or '}' expected switch(_cls5..SwitchMap.org.mysticworlds.WorldObject[type.ordinal()]) ^ C:\xampp\htdocs\EMULADOR\Server\JAVAEX~1\org\MYSTIC~1\MysticWorld.java:277: error: case, default, or '}' expected switch(_cls5..SwitchMap.org.mysticworlds.WorldObject[type.ordinal()]) ^ …

Member Avatar
+0 forum 5
Member Avatar

i get this eveytime i go to youtube. it's just a pop up and i get several of them. how do i fix it? i have no clue what it is and i am not very computer literate so please explain in very simple easy to follow instructions. thank you

Member Avatar
+0 forum 2
Member Avatar

I can't figure out why I'm getting this error, i've checked all the posts I can find here and they are all a method inside another method, which i'm pretty sure I don't have. This is the error message it gave me: Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - illegal start of expression at rps.Rps.compChoice(Rps.java:63) at rps.Rps.main(Rps.java:20) This is my code: [CODE]package rps; import java.util.Random; import java.util.Scanner; public class Rps { Scanner keyboard =new Scanner(System.in); Random rand = new Random(); public static void main(String[] args) { String compType = ""; String playerType =""; int comp = compChoice (); …

Member Avatar
+0 forum 6
Member Avatar

Hi! I have created my wordpress blog named c-ation[Click Here](http://www.c-ation.com) (I'm not advertising the my blog but, just telling you about it). It's new and has not yet much content. I was thinking of using Google Adsense on it. I have a category of "*Website Reviews*" inside the "*Reviews*" menu. I was thinking of posting some posts on Websites as if I was reviewing them for my users. So, when I'll post a review of any website; should I take permission from that very website to post its review on my website or is it not legal to post reviews …

Member Avatar
+0 forum 5
Member Avatar

public class review{ //method code public void start() { int a, b; a = 5; b = methodA(a); System.out.println(a + " " + b); } private int methodA(int a) { int b = 10; a = a + 5; return a + b; } //method end } ------------------------------------------------ i compile and run this code in dr.java compiler jdk 6.0_41 it can compile, but when i run it will display like thi *"Static Error: This class does not have a static void main method accepting String[]"* when i try to add public static void main (String[]args){ //method code } when i …

Member Avatar
+0 forum 4
Member Avatar

So I have been working on this project for quite some time and I can't figure out why I keep getting an "Illegal Start of Expression" error. I tried moving the variables above the main method and that only returned the same error but instead of the error occuring at line 14, it occurs at the start of the next method(applet). Any help would be greatly appreciated! I'm sure it's just some stupid formatting error... package superhangman; import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.util.Random; public abstract class SuperHangman extends Applet implements ActionListener { public static void main(String[] args){ static …

Member Avatar
+0 forum 2
Member Avatar

String usn = jTextField1.getText(); String pwd = new String (jPasswordField1.getPassword()); if (usn.equals("hayley") && pwd.equals("hello")) {new Home().setVisible(true);} else {alert("Invalid Username / Password (LOGIN FAILED)");} Please see the following code above. I have been receiving problems such as "illegal start of expression" and ')' expected whenever I run my system, even though I have already double-checked them and seen no problems with it. BTW, this was declared in the "Set Action..." function of Netbeans IDE. Hoping for a positive response! :D

Member Avatar
+0 forum 1
Member Avatar

Okay, so I'm working on a battleship game, and I added these two tables which are throwing all sorts of errors, like: * Illegal Start of Expression, * Not a Statement, * ';' expected, * ']' expected, * <identifier> expected. I have no idea why... Help, please? import java.awt.*; import java.awt.event.*; import javax.swing.*; class PlayerControl { private static int[] has; private static int[] placed; static ActionListener aListen = new ActionListener() { public void actionPerformed(ActionEvent e) { ... } }; private static void menuAction(JMenuItem menuItem) { ... } private static void buttonAction(JButton button) { ... } static void placeShips() { has[10] …

Member Avatar
+0 forum 3
Member Avatar

All, I'm very new to java having done most of my scripting in Javascript and a little bit in other types of programs. I'm basically trying to obtain a script variable and compare it against a condition and return some println messages. Here is my code: String agentType[] = request.getParameterValues("Agent Flag"); if (agentType[] != null && agentType[].length != 0 ) { System.out.println("You have selected"); } else { System.out.println("You have not selected"); } I'm getting the illegal start of type error message on the if line. Any help will be greatly appreciated.

Member Avatar
+0 forum 5
Member Avatar

Helo every one please tell me anybody where is the save a rar zip file password we download a rar file and it is a password protect we use many softwares but we cannot find his password i think if we use a rar or zip file password then we cannot recover his password another system beacause his setting in another system or save backup in real computer

Member Avatar
+0 forum 10
Member Avatar

I searched all over the net trying to find the reason behind why numbers are illegal as first characters in naming identifiers in C++, they say its illegal but they don't say why its illegal Id be glad if someone could tell me why :) , just curious

Member Avatar
+0 forum 4
Member Avatar

Hello Everyone, Im needing a bit of help here. First, Im trying to let client download a file from server and save it on client's pc. When client clicks on button "DOWNLOAD", it will call a servlet that will download the file. Expected outcome is that a SAVE AS DIALOG BOX will pop up so that client can choose output destination folder. This is my CODE [CODE] path = getServletContext().getRealPath("/")+ "files/"; String filename = path + "users.txt"; String disHeader = "Attachment;Filename=\"users.txt\""; response.setContentType("APPLICATION/OCTET-STREAM"); response.setHeader("Content-Disposition",disHeader); System.out.println(filename); File fileToDownload = new File(filename); FileInputStream fis = new FileInputStream(fileToDownload); try { //response.reset(); ServletOutputStream fos = …

+0 forum 0

The End.