# Let's deprecate \`platform.system() == 'Java'\`

**URL:** <https://discuss.python.org/t/lets-deprecate-platform-system-java/48026>\
**Category:** Core Development\
**Created:** [March 9, 2024, 7:09am UTC](https://discuss.python.org/t/lets-deprecate-platform-system-java/48026 "2024-03-09T07:09:53Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jeff5](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/jeff5/32/1518_2.png) [@jeff5](https://discuss.python.org/u/jeff5)\
**Post date:** [March 9, 2024, 6:24pm UTC](https://discuss.python.org/t/lets-deprecate-platform-system-java/48026/4 "2024-03-09T18:24:16Z")

</div>

> [@sobolevn](#):
>
> Jython2 is long dead,

Not really. Python 2 is dead. Jython 2 gets minimal fixes until Jython 3 can replace it, which of course I’d rather be doing.

As discussed on related issues/PRs, we have found treating Jython or Java as a platform, OS or system, on a par with Windows or Linux, to be problematic in practice. Modules ask “is it Windows” and then assume a Unix-like file system. This breaks Jython on Windows.

java\_ver alongside win32\_ver is part of the same philosophy.

I’m content with the change in Python 3 stdlib because I can see no impact in Jython 2, and I currently think we don’t want it for Jython 3.

`platform.implementation` and `platform.python_version` should tell an application it can do Java specific things, then it can ask Java about its version if it needs to.

I have little to say about depreciation speed as I cannot be sure no one is using it. No one running Jython 3 is using it. 🙂

---

_[View the full topic](https://discuss.python.org/t/lets-deprecate-platform-system-java/48026)._
