Is there a way to create link in windows?
I found samples that use VBScript or one has to do download Shortcut.exe.
I need a simple solution. Is that possible?
I had the same problem, so i wrote library for parsing and creating .lnk files. It does not use VBScripts or JNI, java code only. See my Github.
Creating shortcuts: ShellLink.createLink("targetfile", "linkfile.lnk"). You can also set up most parameters of the link. See details and examples in repo.
Probably this question is not actual already, but i hope it will be helpfull for people who will find this topic in Google.
Well, I had to use Shortcut.exe to create shortcut but actually what I needed was a HardLink to a folder but Shortcut.exe would create a SoftLink.
Eventually I used junction.exe to create the HardLink.
Check this post for more information https://stackoverflow.com/questions/46885/how-to-create-symbolic-links-in-windows
I suggest you to create a shortcut manually and then copy it programatically into the desktop folder.
c:\users\desktop
Related
I want to create a documentation file of my code. I've added the Javadoc comment in every public method I have. If I use other IDE, probably there is a menu to generate it, but unfortunately I use Visual Code.
Is there a way to generate Javadoc file in Visual Code? I only find one extension, with 2 thousands downloads but its not working. The name is Javadoc-Generator
I have tried to run using javadoc command in terminal, but it is not recognized. Do I need to install additional file?
Well firstly thanks for the good question and now i'm going to try to help you with your problem. I searched for an plug in of Javadoc for Visual Studio which is Javadoc Tools with this plug in you can create coments just selecting where you want to make the comments, also you can export your comments and the best thing it's free. I tried this for one of my programmes and it works for me. Definitly i recommend you this, try it and i hope i helped you with your problem.
Selecting where i want to create the comments
Final result
For Javadoc-Generator. In the documentation state "This generator will use the Javadoc located in the JDK referenced in your JAVA_HOME." Make sure you have JAVA_HOME set in your Environment Variables.
I've downloaded and set the javadoc in netbeans from
"http://www.oracle.com/technetwork/java/javase/documentation/java-se-7-doc-download-435117.html"
But i am not getting javadoc when i press ctrl+space in all visAD library components.
So, do I need to download specific javadoc for visAD library?
And if yes then please, provide a link,I searched for it but I am not getting it.
Okay,I got that there is a separate jar file over here....
http://www.ssec.wisc.edu/~billh/visad.html
a link on this page.
And also we get it directly if we write "visad_doc-2.0.jar" on google.
I'm trying to read pdf files in my android application. I don't want to use the default pdf reader and simply open a new intent because I need my own GUI, and want to use the first page as a cover. Therefore I need to make my own pdf reader. I did some research and came across muPDF and Android PDF Viewer Library.
I tried to follow tutorial to implement Android PDF Viewer Library, from the github description. But the problem is that it loads pdf file forever. Do I need to do something else than just the steps in the description?
I can't find any tutorials for the muPDF library, are there any? How to implement it?
If there is no useful answer for the previous two questions, are there any good pdf library out there with tutorials and good documentation?
Thank you, hopefully, I will be able to solve my problem
MuPDF is a very good library, you can definitely use it. If you need a complete example of Android app using MuPDF, I suggest you to take a look at this customizable magazine app on Github.
first of all, if you want to use MUPDF inside an existing android app project you can follow the guide you find at this link (all credits go to the author, I didn't write this).
I am trying as well to integrate a very simple PDF reading/printing solution inside my app and i am struggling to strip down/simplify the MuPdf application demo you get by following that guide. I already managed (somehow) to remove annotation and file-picking features, but i would really need some help as well to get all the job done. There's really a lot of stuff and absolutely no documentation about this. I am simply trying to read the code and figure out what is needed and what is not, removing features one by one and being driven by the errors you get in catlog.
Also, as we both (if I understood correctly your needs) need just the PDF rendering features, would be great if someone points out how to (if possible) disable some of the unnecessary features built in the MuPDF library when building it from source (as DjVu support, just as an example).
Hope this helps, even if it is not a real answer to your question.
This is how I succeeded in building a MuPDF lib on windows with Cygwin, android-ndk
Download MuPDF 1.3 Source from https://code.google.com/p/mupdf/downloads/list
unzip to folder c:/mupdf-1.3-source
Install Cygwin:
Download and run Run setup-x86.exe from http://cygwin.com/install.html
when installing cygwin, make sure you selected make packages and C++ compilers
Make generate. open cygwin terminal, run
cd /cygdrive/
cd c/mupdf-1.3-source
make generate
Install android-ndk:
download android-ndk-r9d-windows-x86.zip and unzip it to
c:/android-ndk-r9d
Build mupdf lib: on windows cmd console:
preparation:
cd c:/mupdf-1.3-source/platform/android
copy local.properties.sample local.properties
edit local.properties, uncomment
#sdk.dir=C:\\Program Files (x86)\\Android\\android-sdk
and change to
sdk.dir=REAL andforid-sdk Folder
build:
while still on c:/mupdf-1.3-source/platform/android, run:
/android-ndk-r9d/ndk-build
Upon the completion of the build, a folder named libs will be created under
c:/mupdf-1.3-source/platform/android
Create android apk.
Open eclipse, create a new android project from existing code, browse to c:/mupdf-1.3-source/platform/android, now you can create a mupdf apk.
Starting with Android 5.0 you can also use Android's internal PDF renderer and for manipulating PDF you can always use iTextg - just some alternatives for the future.
This SO answer lists some steps on how to rip essential pieces from the MuPDF Java sample app to one's own.
Preferably, I'd like to have a "ready to use" Java library I could attach to as a dependency. Is JNI preventing this or is it simply that no-one's gotten up to doing one?
Well, jmupdf is there (mentioned in this duplicate) but that lists Windows and Linux (not specifically Android) as the tested platforms. It seems desktop and dead to me (no changes in 12 months). At least compared to the vibrance of MuPDF itself.
I tried Googling but was unable to come up with any results. What I'm looking for is a basic explanation or tutorial on howto navigate a Unix server with Java.
I have several Java programs that I would like to run directly on my server, however I just have no idea how to let these programs go to certain directories, or scan certain files, etc.
How exactly can I use Java with Unix?
Use File. Specify a path, see if it is a directory, open it, read it, delete it, etc, etc, etc.
listFile will give the files within a directory.
To make your life easier use Apache commons-io FileUtils -> http://commons.apache.org/io/api-release/org/apache/commons/io/FileUtils.html
Here is the project home page -> http://commons.apache.org/io/
Here you can find simplest guides:
http://docs.oracle.com/javase/tutorial/essential/io/
http://www.tutorialspoint.com/java/java_files_io.htm
http://home.cogeco.ca/~ve3ll/jatutor9.htm
I want to open and create .lzh file in java. I find jlha library.
But I can not find any examples of using this library.
Is there a similar library with documentation?
Take a look at project page hosted on google code. There you can find at least one example.
Have you checked the "jlhafrontend" project on Sourceforge?
http://jlhafrontend.cvs.sourceforge.net/viewvc/jlhafrontend/jlhafrontend/org/jlhafrontend/