开发者

Newbie Need help Making Java to class and signing

开发者 https://www.devze.com 2023-02-11 08:03 出处:网络
Reason : The programmer is not responding (or it is not in the c开发者_如何学Contact now)and i outsourced this project. So i have to do it my self.

Reason : The programmer is not responding (or it is not in the c开发者_如何学Contact now) and i outsourced this project. So i have to do it my self.

Knowledge level - PHP, Some jquery Javascript Nothing else. Java is very new to me and not intended to learn. I would like some help for signing applet

.java -> .class -> .jar -> Signing -> Signed.jar -> Adding to Website

Okay i think that will define purpose So here is the procedure i did on pc

Removed all Java JDK jRE ETC

RESTARTED Now installed Just JDK (it contains JRE by default) (the latest version) that is it...

So i have .java file which is made by programmer. For compiling it .Java - .CLass

i did this

At command prompt


   javac MyNewApplet.java
    MyNewApplet.java:18: cannot find symbol
    symbol  : variable j
    location: class MyNewApplet
          j = paramString.charAt(i);
          ^
    MyNewApplet.java:19: cannot find symbol
    symbol  : variable j
    location: class MyNewApplet
          switch (j)
                  ^

Here is SOME source code of the file (MyNewApplet.java)

import java.applet.AppletContext;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLDecoder;
import java.util.HashMap;
import java.util.LinkedList;
import javax.swing.JApplet;

public class MyNewApplet extends JApplet
{
  private String mv_decrypt(String paramString, int paramInt1, int paramInt2)
  {
    LinkedList localLinkedList1 = new LinkedList();
    for (int i = 0; i < paramString.length(); i++)
    {
      j = paramString.charAt(i);
      switch (j)
      {

Can you kindly explain what is wrong ?

I got 30 errors 19 of them are of symbol. I didn't use java before but this is one where i am not able to by pass.


The source of that specific error is that you have not declared the variable j. Try changing that line to:

char j = paramString.charAt(i);

See

Declaring Variables at The Java Tutorial.

0

精彩评论

暂无评论...
验证码 换一张
取 消