Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5165] Java files being treated like text files

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2017-11-08T19:38:45.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio
Labelsn/a
ReporterTom Giessel
AssigneeShak Hossain
Created2017-08-31T12:39:34.000+0000
Updated2017-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

FileDateSize
appc-info.txt2017-11-02T09:07:34.000+000040240
Bildschirmfoto 2017-08-31 um 14.26.26.png2017-08-31T12:37:08.000+0000570364
install_JDT1.png2017-11-07T04:51:43.000+0000216612
JDT_install2.png2017-11-07T04:51:49.000+000077386

Comments

  1. Sharif AbuDarda 2017-10-17

    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.
  2. Mostafizur Rahman 2017-11-01

    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
  3. Tom Giessel 2017-11-01

    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
  4. Mostafizur Rahman 2017-11-02

    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
  5. Tom Giessel 2017-11-02

    Hi Mostafizur, here you go: [^appc-info.txt] Cheers, Tom
  6. Kondal Kolipaka 2017-11-07

    [~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
  7. Kondal Kolipaka 2017-11-07

    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!
  8. Tom Giessel 2017-11-08

    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

JSON Source