I have spend 2 hours to search how I can setup the protobuf in windows for java. I really tied by searching and didn't find any way. Some say download the binary protoc.exe from https://github.com/google/protobuf/releases and some say download the source code then generate the binary.
I stopped my self by searching after reading about each page related to this from first google search. But still didn't find a way to solve it. There is no protoc.exe file in google release page and I don't know how I can create it because I don't have good experience in C++ ( Just know the basics ).
So I posted the question here to get help. Please let me know how I can download protoc.exe file. If not then how I can create it? I just downloaded protobuf-java-3.4.1.zip from google release page.
You can find the precompiled binary on the 3.4.0 release.
The archive to download for windows is protoc-3.4.0-win32.zip.
The 3.4.1 release contains only minor bugfixes, so they probably didn't bother to create the binary for it.
Download the package for CPP from the github
https://github.com/google/protobuf/releases/tag/v3.4.1
Below is the download link,
https://github.com/google/protobuf/releases/download/v3.4.1/protobuf-cpp-3.4.1.zip
Extract it, goto "cmake" directory and read the readme.md doc.
It lists line by line procedure for windows environment setup.
Related
I want to use ogr2ogr.java and it need the GDAL jni to work. I have tried following the instruction mentioned here Build Instructions for GDAL/OGR In Java (Windows) but, still I am not able to build it. I am using windows 7 64 bit operating system.
If somebody has build it successfully let me know how you did it.
So, after lot of trouble I found out that that there is no need to build gdal jni from source.
You can download the compiled jni dll file from here Tamas Szekeres'
Windows daily builds. Make sure you
download a stable release. zip package
release-1600-x64-gdal-1-8-0-mapserver-5-6-6 worked for me. you can
can try it too unless you want a very specific version.
Once the gdaljni.dll file was in place I got the ogr2ogr.java file
from here All Java sample
programs
Make sure you check this post to set the environment variables
correctly
I installed the JDK8u40, but only find the javafx-src.zip.
Where can I find the source code for JDK? The src.zip?
Below is what I get after installation:
And btw, I didn't see the installation wizard! This is quite strange.
ADD 1
Today I tried several Java installation packages. All are downloaded from Oracle official site.
jdk-6u45-windows-i586.exe
jdk-7u75-windows-i586.exe
jdk-8u20-windows-i586.exe
jdk-8u25-windows-i586.exe
jdk-8u31-windows-i586.exe
jdk-8u40-windows-i586.exe
Both 6u45 and 7u75 installed well on my box. I can see the install wizard. And the src.zip is installed.
But 8u25 ~ 8u40 all installed silently. And no src.zip file is installed because I have no chance to select it in the wizard.
I am not sure if this is my fault or someone at Oracle made a mistake.
As #SubOptimal commented, the /s option indicates a silent install. I am wondering if there's an option to force the GUI install wizard to open.
I am using Windows 7 Enterprise x64 Build 7601 SP1
Make sure the Source code is not disabled when downloading.
Then as you can see on the picture, selecting "Source Code" will tell you exactly where it is located.
Notice that I've downloaded the 32 bits version to make sure to reproduce the same use case as you.
Edit
As per your new edits and comments, it seems what you want to know now is why you don't see the installation wizards. I'm pretty sure this is due to old-set registry key.
Run the following command
reg query hklm\software\microsoft\windows\currentversion\installer\UserData\S-1-5-18\Products /f "java" /s | find "HKEY_LOCAL_MACHINE"
Now, navigate to each of the returned path browsing with regedit and delete their entire parent (the big hexa number).
Re-try the installation and I'm pretty sure you will see the wizard.
As for the sources, Oracle documentation specify how to download them in silent mode.
jdk.exe /s ADDLOCAL="SourceFeature"
This is the way I got the src folder from jdk-8u172-windows-x64.exe file without installing.
Step1: Download jdk-8u172-windows-x64.exe file (Java SE Development Kit 8u172) from oracle site
Step2: Extract it and navigate to the path:
\jdk-8u172-windows-x64.rsrc\1033\JAVA_CAB9
Step3: Right click on file named "110" and extract it.
You will get the src.zip file.
It took me little while to figure this out. I hope it will help others.
Enjoy debugging Good Code!
I don't know why/where the src.zip is, but as an alternative, if all you want is the source and somehow the proposed method doesn't work for you, you could always pull directly from the JDK8u40 source tree.
You will need Mercurial instead of Git. This link talks about the hg clone command
Quoting from the OpenJDK Java.net site
The corresponding master forest jdk8u can be cloned using this command: hg clone http://hg.openjdk.java.net/jdk8u/jdk8u;cd jdk8u;sh get_source.sh .
In addition, the source code for the last release, 8u40, is available by cloning the 8u40 master forest : http://hg.openjdk.java.net/jdk8u/jdk8u40. The final build of that release was tagged as jdk8u40-b25.
There are differences between OpenJDK and Oracle's, though subtle
download JDK 8 from following link
http://www.oracle.com/technetwork/java/javase/jdk-8-readme-2095712.html
src.zip comes in-built with it
if you JDK installer silently skips installing the source. just open the control panel > programs an features and find Java. Right click on it and select change and then select the
source (option) ;)
Download the JDK
Run the Installer, but stop right away
Extract src.zip from C:\Users\<your_username>\AppData\LocalLow\Oracle\ss180121.cab
You can extract .zip from .cab with tool like 7Zip
Taken from
I currently have an RCP Eclipse plug-in that goes into IBM Lotus Notes. I need to call the notes.exe binary with some arguments (kind of like from a .bat file), and I know how to do that when I know WHERE Notes is installed.
How do I find out where IBM Lotus Notes is installed, so I can know where to call the notes.exe from?
NOTE: Please don't suggest I look in the typical install folder, I'd like to be able to do it regardless of whether it's the typical default folder or not. Thanks
Look in the Windows registry under HKEY_CLASSES_ROOT\Notes\shell\open\Command
See answers to this old StackOverflow question for Java code that can read/write the registry.
Platform.getInstallLocation() points to the [Notes_install]/framework/rcp/eclipse folder
Just remove the suffix and you have the Notes install
I am currently developing JNI libraries under windows environment using cygwin and deploy to linux now
my question is ..
where to download cygwin-gcc-linux.tar.bz2 please help
I am very keen on any response
ive read this page
http://metamod-p.sourceforge.net/cross-compiling.on.windows.for.linux.html
but seems to be that provided link for downloads do not contain the file
cygwin-gcc-linux.tar.bz2.. please help
or if there is any very simple ways to cross compile JNI for linux developed in windows help.. please.
and also if ever how can i install in on cygwin properly. please help...
I've never tried installing Cygwin from a tar file before, but if you go to the install page on the official website, it's all pretty straightforward - just download the installer and follow the directions.
Link here: https://cygwin.com/install.html
You Can Find this on following link. Select The Version and click on that and then download from the very first screen.
http://www.netgull.com/gcc/releases/
I'm looking for a Java library that can open .vhd files. I wants to create a program that can navigate inside it. I also want it to be
cross-platform. I have googled for an library a while now but found nothing. I did only find an old unanswerd question here on stack overflow.
Can anyone help me?
Consider libguestfs. libguestfs is a C library, but it has a Java binding.
It claims to be cross-platform, working on Linux and Mac OS X, and "[s]ome virt tools have been ported to Windows". Check to see whether the features you need work on Windows.
libguestfs does support VHD images (under the format name vpc).
Obtaining libguestfs
The Java bindings, which contain the com.redhat.et.libguestfs package, are available as part of the source distribution tarball. This can be obtained from the libguestfs download page; select the latest version, currently 1.18.8.
Alternatively, a pre-compiled JAR might be available from the Maven repository.
Either way, on Windows you likely have to compile the native libguestfs library yourself.