Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

32/64 bit confusion with inverse search #104

Closed
PHPirates opened this issue Aug 21, 2017 · 7 comments · Fixed by #814
Closed

32/64 bit confusion with inverse search #104

PHPirates opened this issue Aug 21, 2017 · 7 comments · Fixed by #814
Assignees
Labels
bug Deficiencies in TeXiFy behaviour.

Comments

@PHPirates
Copy link
Collaborator

When double-clicking in SumatraPDF:

Error launching IDEA 
No JVM installation found. Please install a 32-bit JDK. If you already have a JDK installed, define a JAVA HOME variable in Computer > System Properties > System Settings > Environment Variables. 
NOTE: We have detected that you are running a 64-bit version of the Windows operating system but are running the 32-bit executable. This can prevent you from finding a 64-bit installation of Java. Consider running the 64-bit version instead, if this is the problem you're encountering.

I am using a 64-bit JDK on a 64-bit system.
I thought I should run the 64-bit idea64.exe instead of idea.exe from SumatraPDF as I think the error suggests but then double-clicking doesn't do anything.

@stenwessel stenwessel self-assigned this Aug 21, 2017
@stenwessel stenwessel added the bug Deficiencies in TeXiFy behaviour. label Aug 21, 2017
@stenwessel stenwessel modified the milestone: b0.4 Aug 21, 2017
@TihiyTi
Copy link

TihiyTi commented Oct 28, 2017

As temporary solution in Sumatra (if use one Tex project in IDEA): Settings - Wide Settings ->
find line "InverseSearchCmdLine" and:

  1. change "idea.exe" to "idea64.exe"
  2. add path to project (first param). Change "" to "path_to_project"

@PHPirates
Copy link
Collaborator Author

PHPirates commented Oct 28, 2017

Works for me, good find! Although it's too much work to do so for every project I open, but maybe it gives @stenwessel an idea for a fix? Would it be possible to run Sumatra with the extra argument on every run?
The problem here is that it does work for some people the way it currently is...

@TihiyTi
Copy link

TihiyTi commented Oct 28, 2017

As variant we can modifcate Run Configuration for every project once:
Run -> EditConfiguration -> +Before launch -> Run external tools -> + ->
Program: cmd.exe
Parameeters(in my case): /c start SumatraPDF -inverse-search ""C:\Program Files\JetBrains\IntelliJ IDEA 2017.1.3\bin\idea64.exe" "C:\PathToProject" --line %l "%f"

It is reconfiguring Sumatra inverse search before build project, if sumatra don't run in this time (on my mind if Sumatra already run it don't reconfig seach).

@PHPirates
Copy link
Collaborator Author

I just noticed that the error message says 'Please install a 32 bit JDK'. I just did, and now inverse search works with the default options of TeXiFy. Don't ask me why :)

stenwessel added a commit that referenced this issue Nov 16, 2017
Updated README FAQ with fix from #104
@PHPirates
Copy link
Collaborator Author

PHPirates commented Apr 15, 2018

For Java 9, Orace will not provide 32 bit downloads, but I found one here: https://github.com/ojdkbuild/ojdkbuild (under 'Other downloads') and putting that in C:\Program Files\Java and pointing JAVA_HOME to it (and rebooting) seemed to fix it again.

(from https://stackoverflow.com/a/47169339/4126843)

@vikyPS
Copy link

vikyPS commented Jun 9, 2020

If your system is 64 bit and your install Java version 64 bit then just check another .exe file named as "idea64.exe" in your IntelliJ installation directory, And if you are using the 32-bit system with 32 bit Java then open "idea.exe" your IDE will open fine.

@PHPirates
Copy link
Collaborator Author

@vikyPS We select idea64.exe/idea.exe automatically now (see #809). This issue is ancient, in TeXiFy terms :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Deficiencies in TeXiFy behaviour.
Projects
No open projects
TeXiFy-IDEA <b0.7.2
First Release
Development

Successfully merging a pull request may close this issue.

4 participants