Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!

Ahmed Shalotut

Greenhorn
+ Follow
since Dec 11, 2016
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
5
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ahmed Shalotut

Henry Wong wrote:

Ahmed Shalotut wrote:
I didn't find that precompiled code but I don't like this to appear can make it unextractable?



First, there is no such a thing as precompiled code with Java. You definitely misheard your friend on the phone.

Second, keep in mind that the JVM needs to extract the jar file too. Or else, it won't be able to run the jar file.... so, it isn't as simple as making the Jar file "unextractable". This is why we are trying to steer you into telling us what the underlying cause of the issue is -- which for some reason, you don't want to tell us.


Anyway... if you don't care, and only want to make it unextractable, I think there is a commercial product that will encrypt jar files, and with a classloader so that the JVM can extract it. I think I saw a reference to it mentioned on the ranch in the past.

Henry


didn't mean to hide the reason but simply I am going to sell the Project and I used some data structures like tree and graph to make it faster and don't want anybody to see how  I coded just for the privacy
this is the point
so you said it is possible and that won't disturb the JVM ? and please I want something to read about it a little if possible.
1 year ago

Henry Wong wrote:
Also, if there was a way to achieve what is wanted, without actually understanding (or caring) what the underlying issue is, don't you think that we would have mentioned that? ...

Henry


didn't get what you are talking about.
1 year ago

Dave Tolls wrote:As Henry asked earlier, have you looked in the jar file yourself?
It's just a zip file with the extension changed, so you can open it easily enough and check yourself whether there are any .java files (ie the source code) in the jar file.


I didn't find that precompiled code but I don't like this to appear can make it unextractable?
1 year ago

Henry Wong wrote:

Ahmed Shalotut wrote:
I don't remember because it was on the phone the problem is he took a screenshot and showed me the code
and said I could Extract it.



Well, of the two problems, the first one is easy to fix -- and you should fix it. The second one is much harder to fix, and requires a discussion.

Regardless, it would be a good idea to figure out which problem it is...

Henry


Sure the main problem is it is  an Extractable file if I stop that sure he won't get the code but i don't know how
1 year ago

Henry Wong wrote:
Or did you friend say "decompiler"? ....

Henry


I don't remember because it was on the phone the problem is he took a screenshot and showed me the code
and said I could Extract it.
1 year ago
after converting my Project to .jar I gave it to a friend to test it and he told me that he could find the source code in something called the precompile or something like that
but I need to hide it completely so nobody can Extract it or see the source code,
1 year ago

Henry Wong wrote:

Ahmed Shalotut wrote:
what should I do to make it work
but I don't have problems with coding or debugging.
maybe I didn't get what you said as well.



Apologies. We do get a lot of users asking for help with debugging. If you don't need help with that, then, no worries.

As for the exception, it is most likely a privileges issue... but I will leave you to debug that.

Henry



You are super 😁 just done with it thanks

Henry Wong wrote:

Ahmed Shalotut wrote:
I tried to connect from my other Pc using my IP and the port number but it didn't work and always threw exception



... and I assume that you don't feel comfortable with Databases and Networking to debug it? Well, that is what the ranch is for... just ... TellTheDetails.

Henry


java.sql.SQLException: null,  message from server: "Host 'Name' is not allowed to connect to this MariaDB server"

there is the exception

Henry Wong wrote:

Ahmed Shalotut wrote:
I tried to connect from my other Pc using my IP and the port number but it didn't work and always threw exception



... and I assume that you don't feel comfortable with Databases and Networking to debug it? Well, that is what the ranch is for... just ... TellTheDetails.

Henry


look what I meant is that I am trying to remote connect my database using my IP address from another Pc but I don't know what is wrong.
what should I do to make it work
but I don't have problems with coding or debugging.
maybe I didn't get what you said as well.

Henry Wong wrote:
Why shouldn't it work? The JDBC interface is designed for network access. The MySql driver supports access via machine name (or IP) and port.  And if memory serves, the JDBC driver should be using TCP, so it should route over the internet too.

Henry



I tried to connect from my other Pc using my IP and the port number but it didn't work and always threw exception
please, I need to know if it is possible to connect MySQL database from another PC in the same LAN or maybe throw the internet
do I need to pay for this?
can I do it throw Xampp?  and how?
please, I need urgent help in that.

so again I need to connect one database using MySql from different Pcs from java code (JDBC).
what do I need to do?
the following code enforces the user to enter a number and doesn't accept any other letter or anything
but I want to let the user enter a float number I need to accept the floating point in the number.
is it possible via code like this?
or I need to make the code myself
it is easy but this is much better..


1 year ago
hello,
I want to make a project supports 2 languages English and something else let's say Arabic
now I need it like in websites.
I 2 flags and if I press the English flag everything displayed in English,  otherwise Arabic.
is there any library in java to do so?
or do I need to type everything 2 times in the 2 different languages to be displayed?
1 year ago
please I want somebody to tell me how to delete data of binary File
1 year ago