[AC-5165] Java files being treated like text files
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-11-08T19:38:45.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Studio |
Labels | n/a |
Reporter | Tom Giessel |
Assignee | Shak Hossain |
Created | 2017-08-31T12:39:34.000+0000 |
Updated | 2017-11-08T19:38:46.000+0000 |
Description
When I create a new "Mobile Module Project" for Android, all .java files are treated like plain text files, with no syntax highlighting and no IDE helping tools like showing me warnings, errors, etc. (see the attachment). Since its not really fun to work like this, I need you to help me out here. How can I fix this?
Thanks in advance!
Kind regards,
Tom
Attachments
Hello, Go to your studio preference/general/editor/file associations/ and find .java in "file types" and select it and in "Associate editors" select your appropriate editors. Click ok to save. If there is no .java file in the "file types", create one by "add". Thanks.
Hello [~tgiessel], Just passing as update here.Are you able to get that sorted out? Please let us know if you need more help with this issue. Thanks
Hi there, unfortunately not. Sharif' solution did not help as the .java files were already added to the file types. I even removed them and added them again, but it had no effect whatsoever. Cheers, Tom
Hello [~tgiessel], Thanks for your feedback. Can you please open terminal, type:*appc info* and send us the output in a separate text file. Thanks
Hi Mostafizur, here you go: [^appc-info.txt] Cheers, Tom
[~sdarda] Make sure Java Development Tools are installed in the Appcelerator Studio. Please follow the instructions here http://docs.appcelerator.com/platform/latest/#!/guide/Creating_a_New_Titanium_Module-section-src-30083142_CreatingaNewTitaniumModule-PreparingAppceleratorStudioforModuleCreation http://docs.appcelerator.com/platform/latest/#!/guide/Installing_the_Java_Development_Tools
Here is the Eclipse Luna update site to get the supported JDT version Eclipse luna - http://download.eclipse.org/eclipse/updates/4.4 Please follow the below screenshots !install_JDT1.png|thumbnail! Once JDT is installed in the studio, please verify the Java perspective as shown below. !JDT_install2.png|thumbnail!
Hi Kondal, even after installing the JDT, the Java perspective did not show Java. However, after removing Appcelerator entirely from my system and running a fresh install, it finally works again. Thanks for your help! Kind regards, Tom