Hi
I wanted to start writing my own .apk's, so I read the instructions etc., and got to the point where I have to install java for developers.
I wanted to test a fw things using Apk.Manager 4.9 and what I get is the info:
Java was not found, you will not be able to sign apks or use apktool
Click to expand...
Click to collapse
As well as (any action):
Error occurred during intialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
Click to expand...
Click to collapse
I looked for a resulution using Google and all I found was a few posts telling me to set Javas path. So I went into cmd and tried to set the path, but it didn't work, so I don't know what am I doing wrong.
Additional info:
Java installed: jdk1.6.0_20 + jre6 + javafx-sdk1.3
System: Win 7 64 bit (Java is installed in folder named Program Files (x86))
I'd appreciate a detailed instruction - noob type one :E
"So I went into cmd and tried to set the path" ? how do you set the path in cmd?
I usually right click my computer, go to advanced system options, click enviroment variables and edit path there...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thx. I followed Your ss and the path seems to be ok. :/
C:\Program Files (x86)\JavaFX\javafx-sdk1.3\bin;C:\Program Files (x86)\JavaFX\javafx-sdk1.3\emulator\bin; (...)
Click to expand...
Click to collapse
If the path is ok, then I don't get why the problem still occurs? Should I add jdk1.6.0_20 from normal Java folder (not JavaFX) to the path? :E
edit: in cmd it's like... "path=C:\etc.?" :E
The path i put in is "C:\Program Files\Java\jdk1.6.0_22\bin"
It works now, thx!
Related
MODS CAN MOVE THIS IF NEEDED
There may be some people that aren't too terminal friendly and others that don't like typing so i made a simple GUI signing script this morning just to try it.
SETUP:
1. Install Java JRE (If you haven't already)
Code:
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
2. Download testsign.jar
--Place testsign.jar in home folder.
3. Download my script
--Place script "sign" in home folder
4. Open terminal
Code:
chmod a+x sign
Running:
Double click on sign file and run
Select zip file to be signed:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Enter output zip name:
Let it sign.... Progress bar doesn't work yet so just let it do its thing...
And your done!
Your new signed Zip file is in the home folder!
Hope some people find this helpful!
Question
Can we make our updates with this and flash the perfected spl's such as 1.76.0009/.0010?
arpitjain91 said:
Can we make our updates with this and flash the perfected spl's such as 1.76.0009/.0010?
Click to expand...
Click to collapse
Sorry for the late reply. Yeah you can sign your own updates with this. Not sure about the perfected spl though.. anyone?
we need a new signed key
illconcepts said:
Sorry for the late reply. Yeah you can sign your own updates with this. Not sure about the perfected spl though.. anyone?
Click to expand...
Click to collapse
We need a new test key to sign that works on perfect spl device.
im trying to install android sdk from this link http://wiki.cyanogenmod.com/index.php?title=Howto:_Install_the_Android_SDK
and im on step #17
everything before that worked fine and my command prompt recognized my device so i know its recognizable.
Any step 16 and 17 ask
16. Open the Device Manager.
Right-click on My Computer (Windows XP) or Computer (Windows Vista/7).
Click on Manage.
Click on Device Manager on the left.
17. You will probably see Unknown Device with ADB listed under it with a yellow exclamation mark
i do no see my phone listed on their. Any idea's?
I believe I had similar problem around that steps (Windows 7 PC unable to recognize ADB) and ended up modifying some of the instructions on my own.
I installed PDANet and it worked then. Make sure your phone is in Recovery mode and USB Debugging enabled.
http://forum.xda-developers.com/showthread.php?t=875580
really, ok i will try that right now. Hopefully it works, im having serious problems with adb. it won't recognize my device and i have everything updated in sdk
this is what im used to seeing.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
and this is where i download android sdk from just so you guys know
http://developer.android.com/sdk/index.html
downloaded the zip and updated EVERYTHING!
This is the solution. Do these steps exactly.
http://forum.xda-developers.com/showpost.php?p=11139522&postcount=5
im still getting the error message
C:\android-sdk-windows\platform-tools;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Teleca Shared;C:\android-sdk-windows\platform-tools;C:\android-sdk-windows\tools.
this what i have written in Control panel>system>Advanced>enviroment> path. is this right
try this
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Teleca Shared;C:\android-sdk-windows\platform-tools;C:\android-sdk-windows\tools
okay, so i have been researching how to resolve error status 6 while flashing, i have found its because the updater-script has windows line endings, so heres how i fixed it.
all you need is notepad++.
Also this is for developers making roms/mods/etc that cannot fix the error...
1. Extract the updater-script
Click to expand...
Click to collapse
2. Open notepad++ and enable "show all characters"(the icon below)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
3. Go to the tab named "Edit" then select "EOL Conversion"then "Windows Format"(to convert to windows first)
Click to expand...
Click to collapse
4. Go to the tab named "Edit" then select "EOL Conversion" then "Mac/Unix Format"(to convert to unix to fix the issue)
Click to expand...
Click to collapse
5. Go to the tab named "Encoding" and select "Encode in ANSI"
Click to expand...
Click to collapse
6. Save and pack the updater-script back into the .zip
Click to expand...
Click to collapse
7. DONE enjoy the "error status 6" FREE zip.
Click to expand...
Click to collapse
i just write a (free) small utility that display all scatter infomations (without opening FLASH TOOL.. and using right mouse button on selected SCATTER file)
this is an image of the tool:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
and the download link is http://www.wcn.it/ScatterAnalyzer.exe
i'm working on it and all help/suggestions are welcome
thanks:good:
Doesnt work for me:
enable to read folder contents
Try To reduce folder PATH (invalid chars?)
What I am doing wrong?
Seems it doesnt work with MT6571 scat files?
corbin said:
Doesnt work for me:
enable to read folder contents
Try To reduce folder PATH (invalid chars?)
What I am doing wrong?
Seems it doesnt work with MT6571 scat files?
Click to expand...
Click to collapse
Same problem i'm facing here.
can we get scatter file for my phone by using this tool????
corbin said:
Doesnt work for me:
enable to read folder contents
Try To reduce folder PATH (invalid chars?)
What I am doing wrong?
Seems it doesnt work with MT6571 scat files?
Click to expand...
Click to collapse
Faced the same problem, open scatter with scatter analyzer by Open With option in Windows
you must drag the scatter txt file to the executable .
do not open the program first ! you drag the scatter file to
the program icon
the file is in forum of original poster
http://forum.androidurdu.net/showthread.php?tid=117
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I get that error message when flashing the stock images on my unlocked google pixel 3. I now have no OS on my phone I don't believe as booting it up shows "unknown command".
Anyone know what to do?
https://imgur.com/0IjGoic if the image doesn't load
HueBearSong said:
I get that error message when flashing the stock images on my unlocked google pixel 3. I now have no OS on my phone I don't believe as booting it up shows "unknown command".
Anyone know what to do?
https://imgur.com/0IjGoic if the image doesn't load
Click to expand...
Click to collapse
Try flashing the system.img to both slots.
Sent from my [device_name] using XDA-Developers Legacy app
I had the same problem but managed to resolve it.
the way to do it is to do the followings:
1) Install the updated adb tool files from google official framework website here (Very very very important)
https://developer.android.com/studio/releases/platform-tools
2) download the factory image file and unzip it inside a folder. For example "A"
3) after unzipping the rom file, you will find another rom file, unzip it also to the same folder "A"
4) unzip the adb tool downloaded from step 1 and put them in the same folder "A"
5) Double click on "Flash all" to execute the command.
6) Enjoy