Home > Back-end >  Decompiling Java, and turn to change after class error problem
Decompiling Java, and turn to change after class error problem

Time:10-01

I'm from others APP decompiled over the class, individual files inside need to store things, how convert Java change after again into the class, prompt error, when turning symbol errors, the package does not exist ah of what, what to do with this





C: \ Users \ zhu> Javac C: \ Users \ zhu \ Desktop \ im jik. Server \ SRC \ im jik \ server \ GetOrderTask Java
C: \ Users \ zhu \ Desktop \ im jik. Server \ SRC \ im jik \ server \ GetOrderTask Java: 3: error: package android. The content does not exist
The import android. The content. The Context;
^
C: \ Users \ zhu \ Desktop \ im jik. Server \ SRC \ im jik \ server \ GetOrderTask Java: 4: error: package android. The content does not exist
Import android. Content. SharedPreferences;
^
C: \ Users \ zhu \ Desktop \ im jik. Server \ SRC \ im jik \ server \ GetOrderTask Java: 5: error: package. Android OS there is no
The import android. OS. Handler;
^
C: \ Users \ zhu \ Desktop \ im jik. Server \ SRC \ im jik \ server \ GetOrderTask Java: 6: error: package com. Alibaba. Fastjson there is no
The import com. Alibaba. Fastjson. JSON;
^
C: \ Users \ zhu \ Desktop \ im jik. Server \ SRC \ im jik \ server \ GetOrderTask Java: 12: error: can't find the symbols
Private Context Context;
^
Symbol: class Context
Location: class GetOrderTask
C: \ Users \ zhu \ Desktop \ im jik. Server \ SRC \ im jik \ server \ GetOrderTask Java: 13: error: can't find the symbols
Private Handler Handler.
^
Symbol: class Handler
Location: class GetOrderTask
C: \ Users \ zhu \ Desktop \ im jik. Server \ SRC \ im jik \ server \ GetOrderTask Java: 19: error: can't find the symbols
Public GetOrderTask (Context paramContext, Handler paramHandler)
^
Symbol: class Context
Location: class GetOrderTask
C: \ Users \ zhu \ Desktop \ im jik. Server \ SRC \ im jik \ server \ GetOrderTask Java: 19: error: can't find the symbols
Public GetOrderTask (Context paramContext, Handler paramHandler)
^
Symbol: class Handler
Location: class GetOrderTask
C: \ Users \ zhu \ Desktop \ im jik. Server \ SRC \ im jik \ server \ GetOrderTask Java: 35: error: can't find the symbols
Object localObject1=((SharedPreferences) localObject2). Get string (" akey ", "");
^
Symbol: class SharedPreferences
Location: class GetOrderTask
C: \ Users \ zhu \ Desktop \ im jik. Server \ SRC \ im jik \ server \ GetOrderTask Java: 36: error: can't find the symbols
String STR=((SharedPreferences) localObject2). Get String (" wkey ", "");
^
Symbol: class SharedPreferences
Location: class GetOrderTask
C: \ Users \ zhu \ Desktop \ im jik. Server \ SRC \ im jik \ server \ GetOrderTask Java: 37: error: can't find the symbols
LocalObject2=((SharedPreferences) localObject2). Get string (" skey ", "");
^
Symbol: class SharedPreferences
Location: class GetOrderTask
C: \ Users \ zhu \ Desktop \ im jik. Server \ SRC \ im jik \ server \ GetOrderTask Java: 38: error: can't find the symbols
TaskBean localTaskBean=new TaskBean ();
^
Symbol: class TaskBean
Location: class GetOrderTask
C: \ Users \ zhu \ Desktop \ im jik. Server \ SRC \ im jik \ server \ GetOrderTask Java: 38: error: can't find the symbols
TaskBean localTaskBean=new TaskBean ();
^
Symbol: class TaskBean
Location: class GetOrderTask
C: \ Users \ zhu \ Desktop \ im jik. Server \ SRC \ im jik \ server \ GetOrderTask Java: 42: error: can't find the symbols
STR=RC4. Encode (JSON. ToJSONString (localTaskBean), "four c61c86abebc7249");
^
Symbol: variable JSON
Location: class GetOrderTask
C: \ Users \ zhu \ Desktop \ im jik. Server \ SRC \ im jik \ server \ GetOrderTask Java: 42: error: can't find the symbols
STR=RC4. Encode (JSON. ToJSONString (localTaskBean), "four c61c86abebc7249");
^
Symbol: variable RC4
Location: class GetOrderTask
C: \ Users \ zhu \ Desktop \ im jik. Server \ SRC \ im jik \ server \ GetOrderTask Java: 45: error: can't find the symbols
HttpUtils. PostAsyn (" http://121.36.104.126:1123/server/service/taskGet.do ", (Map) localObject1, enclosing handler);
^
Symbol: variable HttpUtils
Location: class GetOrderTask
Note: C: \ Users \ zhu \ Desktop \ im jik. Server \ SRC \ im jik \ server \ GetOrderTask Java used without inspection or unsafe operation,
Note: for more information, please use - Xlint: unchecked recompile,
16 error

CodePudding user response:

This file, I put the JDK bin directory to turn, also tried, the same fault

CodePudding user response:

There must be some problem, you came decompiled from another dependence on others to use on your computer and no, there is no need to rely on the program compiled

CodePudding user response:

Other people use this class to other classes you also should have just done,
You can try changing ideas, such as writing a subclass inherits it, then use its class change it to your child by means of reflection,

CodePudding user response:

Jar package reference question, that is, the class contains some methods or variables need to be the inside of the other classes
  • Related