recentpopularlog in

kme : java   230

« earlier  
How do I uninstall Java on my Mac?
<code class="language-bash">sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -fr ~/Library/Application\ Support/Oracle/Java</code>
macos  mac  osx  java  uninstallation  uninstall  solution 
october 2019 by kme
log4j Logging Levels
log4j Logging Levels - Learn how log4j framework works starting from environment setup, logging levels, methods, formatting, methods, file logging and database logging.
java  logging  davmail  solution 
may 2019 by kme
Java Future Release Notices | https://www.java.com/
Good job, Larry Ellison. Now everyone will be running insecure versions of Java forever, and you just wrote Java's death warrant in the process.
oracle  java  jdk  devel  licensing  updates 
march 2019 by kme
debian - How to use the command update-alternatives --config java - Stack Overflow | https://stackoverflow.com/
For this specific purpose, the package java-common contains a tool called update-java-alternatives.

In my case, 'sudo apt-get install --reinstall java-common' still didn't fix this after (sort of accidentally) installing then de-installing 'openjdk-9-jre' or 'jdk' left /etc/alternatives/java all fubar.

Then 'update-alternatives' was complaining about the symlink being dangling; so I did an 'ln -sf' to fix it, then I got this:
<code class=""># sudo update-alternatives --config java
There is only one alternative in link group java (providing
/usr/bin/java): /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java Nothing
to configure. update-alternatives: warning: forcing reinstallation of
alternative /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java because link
group java is broken</code>
after which it was pretty much working.
java  jre  jdk  debian  alternatives  sysadmin  errormessage  solution 
january 2018 by kme
Java Installation on Debian using Apt-Get | DigitalOcean | https://www.digitalocean.com/
There can be multiple Java installations on one server. You can configure which version is the default for use in the command line by using update-alternatives, which manages which symbolic links are used for different commands.
There can be multiple Java installations on one server. You can configure which version is the default for use in the command line by using update-alternatives, which manages which symbolic links are used for different commands.
<code class="language-bash">
sudo update-alternatives --config java
</code>
debian  java  jdk  alternatives  solution 
january 2018 by kme
Bill Joy - Wikipedia | https://en.wikipedia.org/
In his 2013 book Makers, author Chris Anderson credited Joy with establishing "Joy's theory" based on a quip: "No matter who you are, most of the smartest people work for someone else [other than you]."[11] His argument was that companies use an inefficient process by not hiring the best employees, only those they are able to hire. His "law" was a continuation of Friedrich Hayek's "The Use of Knowledge in Society" and warned that the competition outside of a company would always have the potential to be greater than the company itself.[12]
unix  java  vi 
november 2017 by kme
Contempt Culture - The Particular Finest
The best advice we give programmers is to leave things better than how they started. We do it with code, why don’t we do it with communities? Why don’t we do it with people, colleagues, friends?

Ask why it’s okay to do these things in your community, and leave things better than when you started.
programming  culture  community  womenintech  php  java  sux 
june 2017 by kme
Gitblit
Gitblit is an open-source, pure Java stack for managing, viewing, and serving Git repositories.

It's designed primarily as a tool for small workgroups who want to host centralized repositories.
git  hosting  server  java  devops  versioncontrol  alternativeto  gitlab  bitbucket  github  gog 
may 2017 by kme
Java Uninstall Tool
Doesn't work if the organization is pushing a "deployment rule set." Manual uninstall through Windows' "Programs and Settings" still does, though.
java  windows  annoyance  uninstall  solution 
april 2017 by kme
Java REPL
The repl.it REPL wants you to wrap everything in classes. It's not so great.
java  repl  devel  solution 
april 2017 by kme
Java+Eclipse: how do you debug a java program that is receiving piped/redirected stdin? - Stack Overflow
I'm not sure why just adding '< inputfile' to the list of arguments in the debugging configuration doesn't work, but this is at least a workaround.
Run your app, with the pipe, on the command line but add JVM args for remote debugging, like this:

-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=1044

suspend=y will tell the JVM to not actually run the program until the debugger is attached.

Next, go into the Eclipse debug launch configurations (Run -> Debug Configurations...) and create a "Remote Java Application" to connect to your app. Run the launch in Eclipse (after setting some breakpoints) and you should be able to debug. Not terribly convenient, but if you can't reproduce your issues without the pipe, this is an option.
java  eclipse  debugging  maybesolution 
april 2017 by kme
install Apache common lang 2.5 in Eclipse - Stack Overflow


Detailed steps -

0) Download commons-lang-2.5-bin.zip from Apache Commons - Lang Downloads http://commons.apache.org/lang/download_lang.cgi Expand the archive in a directory (eg. \projects\commons-lang-2.5)

In Eclipse -

1). Put the library in the Java build path

Eclipse -> Preferences: Java - Build path - User Libraries push the "New..." button, and in the "User library name:" enter 'appache-commons-lang'.

Click to select "appache-commons-lang" in the "Defined user libraries" list and then click on the "Add JARs..." button and browse for commons-lang-2.5.jar (in the folder saved earlier) and select it.

In the "Defined user libraries", under commons-lang-2.5.jar need to have "Source attachment" and "Javadoc location" specified. For each of them, select it, then push "Edit..." , then "External file" and browse for the corresponding jar (commons-lang-2.5-sources.jar and commons-lang-2.5-javadoc.jar)

2) In the project add this user library In the Package Explorer right-click on the project name, go to Properties, and select the Libraries tab; click the "Add Library..." button, from the list select "User library" , "Next", mark [x] appache-commons-lang, and click "Finish"
java  thirdparty  library  eclipse  classpath  javadoc  solution 
january 2017 by kme
Set Java 7 as default JVM on Mac OSX Mountain Lion || Matt Gifford - Monkeh Works Ltd
Why in the fuck do I need to do *anything* in the Terminal to fix this? Isn't this what the Java prefpane is supposed to be for?
java  jre  mac  osx  annoyance  maybesolution 
january 2017 by kme
Defining constant string in Java? - Stack Overflow [http://stackoverflow.com/]
Typically, you'd define this toward the top of a class:

public static final String WELCOME_MESSAGE = "Hello, welcome to the server";
Of course, use the appropriate member visibility (public/private/protected) based on where you use this constant.
java  dammitbrain  strings  constants  solution 
september 2016 by kme
java - Scanner No Line Found Exception - Stack Overflow
You should use if(in.hasNextLine()) before calling in.nextLine(). Otherwise for last line it will thrown Line not found exception.
java  inputoutput  bestpractices  errormessage  exception  solution 
september 2016 by kme
java - Scanner No Line Found Exception - Stack Overflow
You should use if(in.hasNextLine()) before calling in.nextLine(). Otherwise for last line it will thrown Line not found exception.
java  inputoutput  bestpractices  solution 
september 2016 by kme
java - How to declare an array - Stack Overflow
You can either use array declaration or array literal (but only when you declare and affect the variable right away, array literals cannot be used for re-assigning an array).

For primitive types:

int[] myIntArray = new int[3];
int[] myIntArray = {1,2,3};
int[] myIntArray = new int[]{1,2,3};

For classes, for example String, it's the same:

String[] myStringArray = new String[3];
String[] myStringArray = {"a","b","c"};
String[] myStringArray = new String[]{"a","b","c"};

For more examples, see the documentation page.
java  newbie  arrays  syntax  dammitbrain  annoyance 
september 2016 by kme
java - What is the use of Interactive Console in Eclipse (Debug view) - Stack Overflow
Answer: it only works for dynamic languages like maybe Perl or with PyDev. In a Java debugging session, just use the "Expressions" tab, because "Interactive Console" is useless.
eclipse  java  debugging  solution 
september 2016 by kme
Java® Exception and abrupt exit on Mac OS X version 10.10 Yosemite
Whatever this patch does, it fixes the problem with the help documentation not opening.
matlab  mac  osx  java  solution 
september 2016 by kme
How can I install MATLAB versions R2011a - R2013a on macOS 10.10 Yosemite or later? - MATLAB Answers - MATLAB Central [http://www.mathworks.com/]
The key was actually using '-javadir' and pointing it to the Java 6 home, because without that, you get an "error contacting MathWorks" during the activation step.

You also need the patch attached to this bug report so that the online help will actually open, instead of just throwing Java exceptions: https://www.mathworks.com/support/bugreports/1098655
matlab  mathworks  java  annoyance  solution 
september 2016 by kme
« earlier      
per page:    204080120160

Copy this bookmark:





to read